Signed-off-by: Michael Niedermayer <michae...@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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to