diff options
author | Limin Wang | 2018-11-25 14:01:22 +0800 |
---|---|---|
committer | Steven Liu | 2018-11-25 14:01:22 +0800 |
commit | 370b8bd8470a9d7d041febc4ef2a7282b41fbdbb (patch) | |
tree | 31b301bbb136934f90143e6575eaeeb82a9a7ce5 /libavcodec/libdavs2.c | |
parent | 737b5f5869252cd1d367ab66321a40653fa34930 (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.c | 2 |
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, |