libavcodec/libdavs2.c: Fix for the wrong line size is used
authorLimin Wang <lance.lmwang@gmail.com>
Sun, 25 Nov 2018 06:01:22 +0000 (14:01 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Sun, 25 Nov 2018 06:01:22 +0000 (14:01 +0800)
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
libavcodec/libdavs2.c

index 874f2f0..3da1498 100644 (file)
@@ -106,7 +106,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,