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 <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-05-29 01:37:46 +02:00
parent 20343cfb51
commit 99b15f1daa

View File

@ -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, "