From 99b15f1daae1aee0532d7e9573052b12005f78ae Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 29 May 2014 01:37:46 +0200 Subject: [PATCH] avformat/nutenc: fix used version value The broadcast/pipe flags arent stable + 1 they would be 4 or whenever but wouldnt change based on which is stable Signed-off-by: Michael Niedermayer --- libavformat/nutenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 237b501d8c..fd245ea3d5 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -697,7 +697,7 @@ static int nut_write_header(AVFormatContext *s) nut->avf = s; - nut->version = NUT_STABLE_VERSION + !!nut->flags; + nut->version = FFMAX(NUT_STABLE_VERSION, 3 + !!nut->flags); if (nut->flags && s->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) { av_log(s, AV_LOG_ERROR, "The additional syncpoint modes require version %d, "