[FFmpeg-devel] [PATCH 2/4] tty: disable extension matching

wm4 nfxjfg at googlemail.com
Thu Aug 8 03:17:04 CEST 2013


On Thu, 8 Aug 2013 03:06:05 +0200
Michael Niedermayer <michaelni at gmx.at> wrote:

> On Thu, Aug 08, 2013 at 01:04:37AM +0200, wm4 wrote:
> > This demuxer isn't very useful and causes more trouble than it solves.
> > In psrticular, it matches .txt files too eagerly. It should be left to
> > the application what to do with text files, and ana pplication shouldn't
> > be forced to blacklist libavformat fringe demuxers.
> 
> Can you elaborate on the problem ?
> what does the application do with .txt files if they are not sucked
> up by tty ?

In my case, this prevented a fallback to an old builtin MPL2 subtitle
parser to fail. I can also see other things that are stored in text
files and which the application might want to handle itself, like
playlists.

On the other hand, I see no reasonable argument why libavcodec
should render text files as video. There are much better ways to view
text files.

It might be bad for various video processing tools as well if random
text files are detected as video.


More information about the ffmpeg-devel mailing list