Commit 370b8bd8 authored by Limin Wang's avatar Limin Wang Committed by Steven Liu

libavcodec/libdavs2.c: Fix for the wrong line size is used

Reviewed-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 737b5f58
...@@ -106,7 +106,7 @@ static int davs2_dump_frames(AVCodecContext *avctx, davs2_picture_t *pic, ...@@ -106,7 +106,7 @@ static int davs2_dump_frames(AVCodecContext *avctx, davs2_picture_t *pic,
} }
frame->data[plane] = frame->buf[plane]->data; 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) for (line = 0; line < pic->lines[plane]; ++line)
memcpy(frame->data[plane] + line * size_line, memcpy(frame->data[plane] + line * size_line,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment