[FFmpeg-devel] [PATCH]Auto-detection for concat demuxer
Michael Niedermayer
michaelni at gmx.at
Mon Feb 4 13:36:52 CET 2013
On Mon, Feb 04, 2013 at 12:51:29PM +0100, Nicolas George wrote:
> 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.
we could have 2 demuxers
foobar and foobar-autoprobe
first would never autoprobe and second would enable safe mode
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130204/f16a87f5/attachment.asc>
More information about the ffmpeg-devel
mailing list