[FFmpeg-devel] [PATCH] Make ffmpeg complains and exit in case of unknown input format
Stefano Sabatini
stefano.sabatini-lala
Tue Mar 2 01:00:20 CET 2010
On date Saturday 2010-02-27 00:17:50 +0100, Stefano Sabatini encoded:
> 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)
Applied.
--
FFmpeg = Frenzy and Friendly Martial Proud Ecletic Guru
More information about the ffmpeg-devel
mailing list