Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
02ce07f8
Commit
02ce07f8
authored
Dec 10, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amvenc: support videos with heights that are not a multiple of 16.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
02acfb1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+5
-1
No files found.
libavcodec/mpegvideo_enc.c
View file @
02ce07f8
...
...
@@ -903,6 +903,10 @@ static int load_input_picture(MpegEncContext *s, AVFrame *pic_arg){
uint8_t
*
src
=
pic_arg
->
data
[
i
];
uint8_t
*
dst
=
pic
->
data
[
i
];
if
(
s
->
codec_id
==
CODEC_ID_AMV
&&
!
(
s
->
avctx
->
flags
&
CODEC_FLAG_EMU_EDGE
)){
h
=
((
s
->
height
+
15
)
/
16
*
16
)
>>
v_shift
;
}
if
(
!
s
->
avctx
->
rc_buffer_size
)
dst
+=
INPLACE_OFFSET
;
...
...
@@ -1558,7 +1562,7 @@ static av_always_inline void encode_mb_internal(MpegEncContext *s, int motion_x,
ptr_cb
=
s
->
new_picture
.
f
.
data
[
1
]
+
(
mb_y
*
mb_block_height
*
wrap_c
)
+
mb_x
*
8
;
ptr_cr
=
s
->
new_picture
.
f
.
data
[
2
]
+
(
mb_y
*
mb_block_height
*
wrap_c
)
+
mb_x
*
8
;
if
(
mb_x
*
16
+
16
>
s
->
width
||
mb_y
*
16
+
16
>
s
->
height
){
if
(
(
mb_x
*
16
+
16
>
s
->
width
||
mb_y
*
16
+
16
>
s
->
height
)
&&
s
->
codec_id
!=
CODEC_ID_AMV
){
uint8_t
*
ebuf
=
s
->
edge_emu_buffer
+
32
;
s
->
dsp
.
emulated_edge_mc
(
ebuf
,
ptr_y
,
wrap_y
,
16
,
16
,
mb_x
*
16
,
mb_y
*
16
,
s
->
width
,
s
->
height
);
ptr_y
=
ebuf
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment