[FFmpeg-cvslog] avformat/nutenc: cleaner version check

Michael Niedermayer git at videolan.org
Tue Jun 10 18:02:41 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 10 16:36:41 2014 +0200| [3a76d7f73d495c5af0968e83d96c075c27af3b5c] | committer: Michael Niedermayer

avformat/nutenc: cleaner version check

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3a76d7f73d495c5af0968e83d96c075c27af3b5c
---

 libavformat/nutenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index b11dd4a..b7ea286 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -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, "



More information about the ffmpeg-cvslog mailing list