[Ffmpeg-devel] CODEC_CAP_DELAY for decoders

Baptiste Coudurier baptiste.coudurier
Sun Nov 5 18:06:25 CET 2006


Michael Niedermayer wrote:
> Hi
> 
> On Sun, Nov 05, 2006 at 04:46:06PM +0100, Baptiste Coudurier wrote:
>> Hi
>>
>> Does this use of CODEC_CAP_DELAY is right for decoders ?
>> It will continue to decode buffer, and so decode animated gif.
>>
>> I noticed a problem though, ffmpeg will not try decode more that one
>> time after getting last pkt, it should continue until decode_video
>> returns -1, no ?
> 
> no
> it should decode until data_size is 0 (=no further picture is output)
> 
> [...]

Humm, decode_video in output_packet check for got_picture_ptr, and also
always set len to 0 ?

Wouldn't that be len -= ret ? Assuming decode_video returns consumed bytes ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-devel mailing list