[FFmpeg-devel] [PATCH] Make ffmpeg complains and exit in case of unknown input format
Stefano Sabatini
stefano.sabatini-lala
Tue Feb 23 23:51:59 CET 2010
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.
--
FFmpeg = Furious and Fast Mastodontic Ponderous Exxagerate Gorilla
More information about the ffmpeg-devel
mailing list