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

2015-11-10 Thread Ni Hui
this updated patch fix the return code of avcodec_decode_video2 for gif decoding ff_lzw_decode_tail() now returns the consumed bytes in lzw decompress and gif frame data buffer is skipped properly gifdec is the only user of ff_lzw_decode_tail() my usecase tested and the return code problem got di

[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

[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