diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c index 874f2f084d..3da1498208 100644 --- a/libavcodec/libdavs2.c +++ b/libavcodec/libdavs2.c @@ -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,