aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/libdavs2.c
diff options
context:
space:
mode:
authorLimin Wang2018-11-25 14:01:22 +0800
committerSteven Liu2018-11-25 14:01:22 +0800
commit370b8bd8470a9d7d041febc4ef2a7282b41fbdbb (patch)
tree31b301bbb136934f90143e6575eaeeb82a9a7ce5 /libavcodec/libdavs2.c
parent737b5f5869252cd1d367ab66321a40653fa34930 (diff)
libavcodec/libdavs2.c: Fix for the wrong line size is used
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavcodec/libdavs2.c')
-rw-r--r--libavcodec/libdavs2.c2
1 files changed, 1 insertions, 1 deletions
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,