|
|
|
@@ -3449,7 +3449,7 @@ FF_ENABLE_DEPRECATION_WARNINGS |
|
|
|
&& codec && !avctx->codec) { |
|
|
|
if (avcodec_open2(avctx, codec, options ? &options[i] : &thread_opt) < 0) |
|
|
|
av_log(ic, AV_LOG_WARNING, |
|
|
|
"Failed to open codec in av_find_stream_info\n"); |
|
|
|
"Failed to open codec in %s\n",__FUNCTION__); |
|
|
|
} |
|
|
|
|
|
|
|
// Try to just open decoders, in case this is enough to get parameters. |
|
|
|
@@ -3457,7 +3457,7 @@ FF_ENABLE_DEPRECATION_WARNINGS |
|
|
|
if (codec && !avctx->codec) |
|
|
|
if (avcodec_open2(avctx, codec, options ? &options[i] : &thread_opt) < 0) |
|
|
|
av_log(ic, AV_LOG_WARNING, |
|
|
|
"Failed to open codec in av_find_stream_info\n"); |
|
|
|
"Failed to open codec in %s\n",__FUNCTION__); |
|
|
|
} |
|
|
|
if (!options) |
|
|
|
av_dict_free(&thread_opt); |
|
|
|
@@ -3703,7 +3703,7 @@ FF_ENABLE_DEPRECATION_WARNINGS |
|
|
|
av_dict_set(&opts, "codec_whitelist", ic->codec_whitelist, 0); |
|
|
|
if (avcodec_open2(avctx, codec, (options && stream_index < orig_nb_streams) ? &options[stream_index] : &opts) < 0) |
|
|
|
av_log(ic, AV_LOG_WARNING, |
|
|
|
"Failed to open codec in av_find_stream_info\n"); |
|
|
|
"Failed to open codec in %s\n",__FUNCTION__); |
|
|
|
av_dict_free(&opts); |
|
|
|
} |
|
|
|
} |
|
|
|
|