summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-09-16 19:20:56 +0200
committerStefano Sabatini <stefasab@gmail.com>2013-09-17 15:59:48 +0200
commit5d12ec8fb7e6022f23e5c155e42e531cea9bd860 (patch)
treeea34693e0bf1001fa071c695f6aa62730299c8f1 /ffprobe.c
parenta1fb3e512778ed940ce754b8e70c4dd99109c1e2 (diff)
ffprobe: downgrade log level for non fatal errors in open_input_file()
Since the errors are not fatal, it is less confusing not to show them as errors but as warnings. Arbitrarily fixes trac ticket #2419.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 17ec7e2631..54fef04f0d 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1936,18 +1936,18 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
AVCodec *codec;
if (stream->codec->codec_id == AV_CODEC_ID_PROBE) {
- av_log(NULL, AV_LOG_ERROR,
+ av_log(NULL, AV_LOG_WARNING,
"Failed to probe codec for input stream %d\n",
stream->index);
} else if (!(codec = avcodec_find_decoder(stream->codec->codec_id))) {
- av_log(NULL, AV_LOG_ERROR,
+ av_log(NULL, AV_LOG_WARNING,
"Unsupported codec with id %d for input stream %d\n",
stream->codec->codec_id, stream->index);
} else {
AVDictionary *opts = filter_codec_opts(codec_opts, stream->codec->codec_id,
fmt_ctx, stream, codec);
if (avcodec_open2(stream->codec, codec, &opts) < 0) {
- av_log(NULL, AV_LOG_ERROR, "Error while opening codec for input stream %d\n",
+ av_log(NULL, AV_LOG_WARNING, "Could not open codec for input stream %d\n",
stream->index);
}
if ((t = av_dict_get(opts, "", NULL, AV_DICT_IGNORE_SUFFIX))) {