[FFmpeg-devel] [PATCH]Auto-detection for concat demuxer

Nicolas George nicolas.george at normalesup.org
Mon Feb 4 12:51:29 CET 2013

Le quintidi 15 pluviôse, an CCXXI, Michael Niedermayer a écrit :
> On Sun, Feb 03, 2013 at 09:55:45PM +0100, Nicolas George wrote:
> > Le quintidi 15 pluviôse, an CCXXI, Carl Eugen Hoyos a écrit :
> > > I meant that you could replace your patch 3/3 with my 
> > > patch and the result would be as safe as with your patch 
> > > or is this wrong?
> > Yes, that is probably true.

> without the signature would be probed too

In fact, I realize that I was wrong in the paragraph above. The issue is
this: if the format was automatically probed, then the safe mode must be
enabled. Unfortunately, it is not possible to know whether the format was
automatically probed. Enabling the safe mode by default would break scripts
that already exist.

My solution is this: add a signature, make the signature enable the safe
mode, and use the signature for probing.

Old scripts will still work with explicit -f and no signature. New files can
be probed automatically if they have the signature, and enable safe mode.


  Nicolas George

More information about the ffmpeg-devel mailing list