[FFmpeg-devel] [RFC][PATCH] return packets for known codecs earlier when codec probing is done
Baptiste Coudurier
baptiste.coudurier
Tue May 26 04:17:49 CEST 2009
On 5/25/2009 6:39 PM, Michael Niedermayer wrote:
> On Mon, May 25, 2009 at 01:10:12PM -0700, Baptiste Coudurier wrote:
> [...]
>> Index: libavformat/avformat.h
>> ===================================================================
>> --- libavformat/avformat.h (revision 18912)
>> +++ libavformat/avformat.h (working copy)
>> @@ -443,6 +443,12 @@
>> * AV_NOPTS_VALUE by default.
>> */
>> int64_t reference_dts;
>> +
>> + /**
>> + * number of packets buffered for codec probing
>> + */
>> +#define MAX_PROBE_PACKETS 100
>> + unsigned probe_packets;
>
> i think initializing it to 100 and countig to 0 is more flexible
> also it should be marked in the doxy as not being part of the public
> API for now
>
> besides this and the improvment you found, the patch does look ok
>
Ok, patch updated.
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: probe_pktl3.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090525/0da59619/attachment.asc>
More information about the ffmpeg-devel
mailing list