[FFmpeg-devel] [PATCH] probetest.c

Michael Niedermayer michaelni
Mon Sep 14 19:11:16 CEST 2009

On Mon, Sep 14, 2009 at 06:19:56PM +0200, Vitor Sessak wrote:
> Michael Niedermayer wrote:
>> Some simple probe testing code should be attached
> [...]
>> if there are no objections i plan to commit that in a few days
>> int main(int argc, char **argv)
>> {
>>     unsigned int p, i, type, size;
>>     AVProbeData pd;
>>     AVLFG state;
>>     PutBitContext pb;
>>     avcodec_register_all();
>>     av_register_all();
>>     av_lfg_init(&state, 0xdeadbeef);
>>     pd.buf= NULL;
>>     for(size= 1; size < 65537; size*=2){
> I think that for sizes < 256, av_probe_input_format2() should fail with an 
> error asking for the client app to provide a decent probing buffer. Or you 
> can imagine a reason why someone would need such a small buffer?

i agree such small buffers make no sense but it speeds up probetest at the
start and i dont think if the same number of tests is run with larger buffers
we would have fewer misdetections ...

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090914/7ed2a23c/attachment.pgp>

More information about the ffmpeg-devel mailing list