[FFmpeg-devel] [PATCH] probetest.c
Vitor Sessak
vitor1001
Mon Sep 14 18:19:56 CEST 2009
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?
-Vitor
More information about the ffmpeg-devel
mailing list