summaryrefslogtreecommitdiffstats
path: root/libavcodec/proresenc_anatoliy.c
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2019-02-26 11:54:23 +0100
committerMartin Vignali <martin.vignali@gmail.com>2019-02-27 17:59:48 +0100
commita3f65f5e9fedb1c58bba8d71382d71191edf6eff (patch)
treea0b0d0c344441a2e959261711eb29c6cad916ff4 /libavcodec/proresenc_anatoliy.c
parent4571c7c05d8488cbc2ae0b337751f132f9670fec (diff)
downloadffmpeg-streaming-a3f65f5e9fedb1c58bba8d71382d71191edf6eff.zip
ffmpeg-streaming-a3f65f5e9fedb1c58bba8d71382d71191edf6eff.tar.gz
avcodec/proresenc_aw : fix sub_image_with_fill for interlaced encoding
used when width and/or height, not multiple of sclice dim
Diffstat (limited to 'libavcodec/proresenc_anatoliy.c')
-rw-r--r--libavcodec/proresenc_anatoliy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index e287d17..5914445 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -484,10 +484,10 @@ static inline void subimage_with_fill_template(uint16_t *src, unsigned x, unsign
box_height = FFMIN(height - y, dst_height);
} else {
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);
if (!is_top_field)
- src += src_stride;
+ src += stride >> 1;
}
for (i = 0; i < box_height; ++i) {
OpenPOWER on IntegriCloud