[FFmpeg-devel] [PATCH 2/2] ffmpeg: Warn if the muxers bitexact flag is not set but it looks as if the user wants it set
Michael Niedermayer
michaelni at gmx.at
Sun Aug 23 11:09:54 CEST 2015
From: Michael Niedermayer <michael at niedermayer.cc>
Note: I doubt requiring this in the future is a good idea
See: [FFmpeg-devel] [PATCH 3/4] fate: add -fflags +bitexact to the relevant targets
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
ffmpeg.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index ae02b00..7e29549 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2757,6 +2757,11 @@ static void set_encoder_id(OutputFile *of, OutputStream *ost)
if (!encoder_string)
exit_program(1);
+ if (!(format_flags & AVFMT_FLAG_BITEXACT) && (codec_flags & AV_CODEC_FLAG_BITEXACT)) {
+ av_log(NULL, AV_LOG_WARNING, "Muxer bitexact flag is not set, please add -fflags +bitexact.\n"
+ "This will become mandatory with future API cleanup\n");
+ }
+
if (!(format_flags & AVFMT_FLAG_BITEXACT) && !(codec_flags & AV_CODEC_FLAG_BITEXACT))
av_strlcpy(encoder_string, LIBAVCODEC_IDENT " ", encoder_string_len);
else
--
1.7.9.5
More information about the ffmpeg-devel
mailing list