ffplay: Print codec_name if decoder for codec_id could not be found.
Reviewed-by: Marton Balint
This commit is contained in:
parent
73438dbbbc
commit
53d6d4f266
@ -2578,7 +2578,7 @@ static int stream_component_open(VideoState *is, int stream_index)
|
|||||||
if (forced_codec_name) av_log(NULL, AV_LOG_WARNING,
|
if (forced_codec_name) av_log(NULL, AV_LOG_WARNING,
|
||||||
"No codec could be found with name '%s'\n", forced_codec_name);
|
"No codec could be found with name '%s'\n", forced_codec_name);
|
||||||
else av_log(NULL, AV_LOG_WARNING,
|
else av_log(NULL, AV_LOG_WARNING,
|
||||||
"No codec could be found with id %d\n", avctx->codec_id);
|
"No decoder could be found for codec %s\n", avcodec_get_name(avctx->codec_id));
|
||||||
ret = AVERROR(EINVAL);
|
ret = AVERROR(EINVAL);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user