[FFmpeg-devel] [PATCH] Make ffmpeg complains and exit in case of unknown input format

Stefano Sabatini stefano.sabatini-lala
Sat Feb 27 00:17:50 CET 2010


On date Tuesday 2010-02-23 23:51:59 +0100, Stefano Sabatini encoded:
> On date Monday 2010-02-22 19:33:53 +0100, Stefano Sabatini encoded:
> > Hi, as in subject, this was removed since r20417.
> > 
> > Regards.
> > -- 
> > FFmpeg = Frenzy Furious Moronic Proud Enhancing Gangster
> 
> > Index: ffmpeg.c
> > ===================================================================
> > --- ffmpeg.c	(revision 21959)
> > +++ ffmpeg.c	(working copy)
> > @@ -2857,7 +2857,10 @@
> >      int64_t timestamp;
> >  
> >      if (last_asked_format) {
> > -        file_iformat = av_find_input_format(last_asked_format);
> > +        if (!(file_iformat = av_find_input_format(last_asked_format))) {
> > +            fprintf(stderr, "Unknown input format: '%s'\n", last_asked_format);
> > +            av_exit(1);
> > +        }
> >          last_asked_format = NULL;
> >      }
> 
> Ping.

AVERROR(E3DCOMMITTHREAT)

Regards.
-- 
FFmpeg = Faithless and Fantastic Mastering Powered Erroneous Guru



More information about the ffmpeg-devel mailing list