Originally committed as revision 22140 to svn://svn.ffmpeg.org/ffmpeg/trunk
Stefano Sabatini authored on 2010/03/02 09:01:16... | ... |
@@ -2852,7 +2852,10 @@ static void opt_input_file(const char *filename) |
2852 | 2852 |
int64_t timestamp; |
2853 | 2853 |
|
2854 | 2854 |
if (last_asked_format) { |
2855 |
- file_iformat = av_find_input_format(last_asked_format); |
|
2855 |
+ if (!(file_iformat = av_find_input_format(last_asked_format))) { |
|
2856 |
+ fprintf(stderr, "Unknown input format: '%s'\n", last_asked_format); |
|
2857 |
+ av_exit(1); |
|
2858 |
+ } |
|
2856 | 2859 |
last_asked_format = NULL; |
2857 | 2860 |
} |
2858 | 2861 |
|