[FFmpeg-devel] [PATCH] libavcodec/libdavs2.c: Fix for the wrong line size is used

Steven Liu lq at chinaffmpeg.org
Sun Nov 25 08:02:29 EET 2018



> On Oct 9, 2018, at 10:33, Liu Steven <lq at chinaffmpeg.org> wrote:
> 
> 
> 
>> 在 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
Pushed.
> 
> Thanks
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Thanks
Steven







More information about the ffmpeg-devel mailing list