avformat/nutenc: cleaner version check
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Jun 2014 14:36:41 +0000 (16:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Jun 2014 14:36:41 +0000 (16:36 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nutenc.c

index b11dd4a..b7ea286 100644 (file)
@@ -698,7 +698,7 @@ static int nut_write_header(AVFormatContext *s)
     nut->avf = s;
 
     nut->version = FFMAX(NUT_STABLE_VERSION, 3 + !!nut->flags);
-    if (nut->flags && s->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
+    if (nut->version > 3 && s->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
         av_log(s, AV_LOG_ERROR,
                "The additional syncpoint modes require version %d, "
                "that is currently not finalized, "