Since the errors are not fatal, it is less confusing not to show them as
errors but as warnings.
Arbitrarily fixes trac ticket #2419.
... | ... |
@@ -1936,18 +1936,18 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename) |
1936 | 1936 |
AVCodec *codec; |
1937 | 1937 |
|
1938 | 1938 |
if (stream->codec->codec_id == AV_CODEC_ID_PROBE) { |
1939 |
- av_log(NULL, AV_LOG_ERROR, |
|
1939 |
+ av_log(NULL, AV_LOG_WARNING, |
|
1940 | 1940 |
"Failed to probe codec for input stream %d\n", |
1941 | 1941 |
stream->index); |
1942 | 1942 |
} else if (!(codec = avcodec_find_decoder(stream->codec->codec_id))) { |
1943 |
- av_log(NULL, AV_LOG_ERROR, |
|
1943 |
+ av_log(NULL, AV_LOG_WARNING, |
|
1944 | 1944 |
"Unsupported codec with id %d for input stream %d\n", |
1945 | 1945 |
stream->codec->codec_id, stream->index); |
1946 | 1946 |
} else { |
1947 | 1947 |
AVDictionary *opts = filter_codec_opts(codec_opts, stream->codec->codec_id, |
1948 | 1948 |
fmt_ctx, stream, codec); |
1949 | 1949 |
if (avcodec_open2(stream->codec, codec, &opts) < 0) { |
1950 |
- av_log(NULL, AV_LOG_ERROR, "Error while opening codec for input stream %d\n", |
|
1950 |
+ av_log(NULL, AV_LOG_WARNING, "Could not open codec for input stream %d\n", |
|
1951 | 1951 |
stream->index); |
1952 | 1952 |
} |
1953 | 1953 |
if ((t = av_dict_get(opts, "", NULL, AV_DICT_IGNORE_SUFFIX))) { |