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

Michael Niedermayer michaelni at gmx.at
Thu Aug 8 03:06:05 CEST 2013


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 ?


> ---
>  libavformat/tty.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libavformat/tty.c b/libavformat/tty.c
> index 3afb9b2..ec39687 100644
> --- a/libavformat/tty.c
> +++ b/libavformat/tty.c
> @@ -155,6 +155,5 @@ AVInputFormat ff_tty_demuxer = {
>      .priv_data_size = sizeof(TtyDemuxContext),
>      .read_header    = read_header,
>      .read_packet    = read_packet,
> -    .extensions     = "ans,art,asc,diz,ice,nfo,txt,vt",
>      .priv_class     = &tty_demuxer_class,
>  };
> -- 
> 1.8.4.rc1
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- 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/20130808/638a2b1e/attachment.asc>


More information about the ffmpeg-devel mailing list