[FFmpeg-devel] [PATCH] libavcodec/libdavs2.c: Fix for the wrong line size is used

lance.lmwang at gmail.com lance.lmwang at gmail.com
Mon Oct 8 05:55:03 EEST 2018


From: Limin Wang <lance.lmwang at gmail.com>

---
 libavcodec/libdavs2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c
index aa14782..91ad7a4 100644
--- a/libavcodec/libdavs2.c
+++ b/libavcodec/libdavs2.c
@@ -88,7 +88,7 @@ static int davs2_dump_frames(AVCodecContext *avctx, davs2_picture_t *pic,
         }
 
         frame->data[plane]     = frame->buf[plane]->data;
-        frame->linesize[plane] = pic->widths[plane];
+        frame->linesize[plane] = size_line;
 
         for (line = 0; line < pic->lines[plane]; ++line)
             memcpy(frame->data[plane] + line * size_line,
-- 
2.6.4



More information about the ffmpeg-devel mailing list