[FFmpeg-devel] [PATCH 3/4] avcodec/mpeg12enc: Use av_format_option_for_user()
Michael Niedermayer
michaelni at gmx.at
Mon May 11 03:18:18 CEST 2015
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavcodec/mpeg12enc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index edcce35..33725ba 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -199,8 +199,10 @@ static av_cold int encode_init(AVCodecContext *avctx)
if (s->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL) {
if ((avctx->width & 0xFFF) == 0 || (avctx->height & 0xFFF) == 0) {
+ char tmp[256];
+ const char *option = av_format_option_for_user(avctx, "strict", AV_STRINGIFY(FF_COMPLIANCE_UNOFFICIAL), tmp, sizeof(tmp));
av_log(avctx, AV_LOG_ERROR, "Width or Height are not allowed to be multiples of 4096\n"
- "add '-strict %d' if you want to use them anyway.\n", FF_COMPLIANCE_UNOFFICIAL);
+ "%s if you want to use them anyway.\n", option);
return AVERROR(EINVAL);
}
}
--
1.7.9.5
More information about the ffmpeg-devel
mailing list