[FFmpeg-devel] [PATCH] avcodec/gifdec: skip data lzw consumed

2015-11-10 Thread Ni Hui
this commit fix the return code value of avcodec_decode_video2 for gif decoding, which should be the consumed data length. --- libavcodec/gifdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index 9f2e6eb..5bcb176 100644 --- a/libavcodec/gifdec

Re: [FFmpeg-devel] [PATCH] avcodec/gifdec: skip data lzw consumed

2015-11-10 Thread Paul B Mahol
On 11/10/15, nihui wrote: > > At 2015-11-10 06:41:47, "Michael Niedermayer" > wrote: >>On Sat, Nov 07, 2015 at 10:23:17PM +0800, Ni Hui wrote: >>> fix the return code value of avcodec_decode_video2 for gif decoding, >>> which should be the consumed data length. >>> >>> --- >>> libavcodec/gifdec.

Re: [FFmpeg-devel] [PATCH] avcodec/gifdec: skip data lzw consumed

2015-11-10 Thread nihui
At 2015-11-10 06:41:47, "Michael Niedermayer" wrote: >On Sat, Nov 07, 2015 at 10:23:17PM +0800, Ni Hui wrote: >> fix the return code value of avcodec_decode_video2 for gif decoding, which >> should be the consumed data length. >> >> --- >> libavcodec/gifdec.c | 2 ++ >> 1 file changed, 2 inser

Re: [FFmpeg-devel] [PATCH] avcodec/gifdec: skip data lzw consumed

2015-11-09 Thread Michael Niedermayer
On Sat, Nov 07, 2015 at 10:23:17PM +0800, Ni Hui wrote: > fix the return code value of avcodec_decode_video2 for gif decoding, which > should be the consumed data length. > > --- > libavcodec/gifdec.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavcodec/gifdec.c b/libavcodec/gi

Re: [FFmpeg-devel] [PATCH] avcodec/gifdec: skip data lzw consumed

2015-11-07 Thread nihui
avcodec_decode_video2 should return the number of bytes used if frame decompressed correctly the current gif decoder just returns the number of bytes of header part of one frame, not including the lzw compressed image data bytes, which should be included too as one avpacket may contain multiple

Re: [FFmpeg-devel] [PATCH] avcodec/gifdec: skip data lzw consumed

2015-11-07 Thread Paul B Mahol
On 11/7/15, Ni Hui wrote: > fix the return code value of avcodec_decode_video2 for gif decoding, which > should be the consumed data length. > > --- > libavcodec/gifdec.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c > index 9f2e6eb..5bcb176

[FFmpeg-devel] [PATCH] avcodec/gifdec: skip data lzw consumed

2015-11-07 Thread Ni Hui
fix the return code value of avcodec_decode_video2 for gif decoding, which should be the consumed data length. --- libavcodec/gifdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index 9f2e6eb..5bcb176 100644 --- a/libavcodec/gifdec.c +++ b/lib