mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
avprobe: Identify codec probe failures rather than calling them unsupported codecs.
This commit is contained in:
parent
f0ff9eb493
commit
503f2feb14
@ -733,7 +733,10 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
|
||||
AVStream *stream = fmt_ctx->streams[i];
|
||||
AVCodec *codec;
|
||||
|
||||
if (!(codec = avcodec_find_decoder(stream->codec->codec_id))) {
|
||||
if (stream->codec->codec_id == CODEC_ID_PROBE) {
|
||||
fprintf(stderr, "Failed to probe codec for input stream %d\n",
|
||||
stream->index);
|
||||
} else if (!(codec = avcodec_find_decoder(stream->codec->codec_id))) {
|
||||
fprintf(stderr,
|
||||
"Unsupported codec with id %d for input stream %d\n",
|
||||
stream->codec->codec_id, stream->index);
|
||||
|
Loading…
Reference in New Issue
Block a user