[FFmpeg-cvslog] avcodec/proresenc_aw : fix sub_image_with_fill for interlaced encoding

Martin Vignali git at videolan.org
Wed Feb 27 19:03:02 EET 2019


ffmpeg | branch: master | Martin Vignali <martin.vignali at gmail.com> | Tue Feb 26 11:54:23 2019 +0100| [a3f65f5e9fedb1c58bba8d71382d71191edf6eff] | committer: Martin Vignali

avcodec/proresenc_aw : fix sub_image_with_fill for interlaced encoding

used when width and/or height, not multiple of sclice dim

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a3f65f5e9fedb1c58bba8d71382d71191edf6eff
---

 libavcodec/proresenc_anatoliy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index e287d176ad..5914445b52 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) {



More information about the ffmpeg-cvslog mailing list