[FFmpeg-devel] [PATCH] libavcodec/libdavs2.c: Fix for the wrong line size is used
Liu Steven
lq at chinaffmpeg.org
Tue Oct 9 05:33:17 EEST 2018
> 在 2018年10月8日,上午10:55,lance.lmwang at gmail.com 写道:
>
> From: Limin Wang <lance.lmwang at gmail.com>
>
> ---
> libavcodec/libdavs2.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c
> index aa14782..91ad7a4 100644
> --- a/libavcodec/libdavs2.c
> +++ b/libavcodec/libdavs2.c
> @@ -88,7 +88,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,
> --
> 2.6.4
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
LGTM
Thanks
More information about the ffmpeg-devel
mailing list