You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/proresenc_aw : fix sub_image_with_fill for interlaced encoding
used when width and/or height, not multiple of sclice dim
This commit is contained in:
@@ -484,10 +484,10 @@ static inline void subimage_with_fill_template(uint16_t *src, unsigned x, unsign
|
|||||||
box_height = FFMIN(height - y, dst_height);
|
box_height = FFMIN(height - y, dst_height);
|
||||||
} else {
|
} else {
|
||||||
src_stride = stride; /* 2 lines stride */
|
src_stride = stride; /* 2 lines stride */
|
||||||
src += y * src_stride * 2 + x;
|
src += y * src_stride + x;
|
||||||
box_height = FFMIN(height - y * 2, dst_height);
|
box_height = FFMIN(height - y * 2, dst_height);
|
||||||
if (!is_top_field)
|
if (!is_top_field)
|
||||||
src += src_stride;
|
src += stride >> 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < box_height; ++i) {
|
for (i = 0; i < box_height; ++i) {
|
||||||
|
Reference in New Issue
Block a user