[FFmpeg-devel] support multipage TIFFs

Baptiste Coudurier baptiste.coudurier
Mon Aug 10 00:29:45 CEST 2009

On 8/9/2009 8:14 AM, Peter Ross wrote:
> On Sun, Aug 09, 2009 at 07:42:58AM -0700, Baptiste Coudurier wrote:
>> Hi Peter,
>> On 8/9/2009 12:56 AM, Peter Ross wrote:
>>> $subject.
>>> This requires modification to ffmpeg to allow multiple avcodec_decode_video2()
>>> calls to be performed on the same packet. This will break any codec that
>>> expects the callee to discard non-consumed packet data.
>> Can it work with CODEC_CAP_DELAY ?
> I dont think this is appropriate, because we'd need to cache the packet
> within the codec context. And what about the use case if somebody decides
> to store multiple multipage TIFFs inside a container.

Well, it works with the animated gif decoder I wrote.

In any case, if this behaviour is allowed, usage must be documented in 
avcodec_decode_video2, and all applications must be modified to handle 
it. If decode cache data, applications handling CODEC_CAP_DELAY 
correctly (all do I think), will handle this feature already.

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org

More information about the ffmpeg-devel mailing list