[FFmpeg-devel] [PATCH] lavc/utils: provide more feedback in case of experimental codec
Stefano Sabatini
stefasab at gmail.com
Sat Oct 20 14:54:02 CEST 2012
---
libavcodec/utils.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 5e9f38e..ac43843 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -888,7 +888,10 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
if (codec->capabilities & CODEC_CAP_EXPERIMENTAL)
if (avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
- av_log(avctx, AV_LOG_ERROR, "Codec is experimental but experimental codecs are not enabled, try -strict -2\n");
+ av_log(avctx, AV_LOG_ERROR,
+ "Codec %s is experimental but experimental codecs are not enabled: "
+ "try the \"strict\" option with value \"experimental\"\n",
+ codec->name);
ret = AVERROR(EINVAL);
goto free_and_end;
}
--
1.7.5.4
More information about the ffmpeg-devel
mailing list