mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 02:04:58 +00:00
libavcodec/libdavs2.c: Fix for the wrong line size is used
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
737b5f5869
commit
370b8bd847
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user