avformat/movenc: Use strict_std_compliance from the muxer layer instead of the encode...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 26 May 2015 23:58:24 +0000 (01:58 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 Dec 2015 19:06:04 +0000 (20:06 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/movenc.c

index c059407..5594c6d 100644 (file)
@@ -5274,7 +5274,7 @@ static int mov_write_header(AVFormatContext *s)
             }
             if (track->mode != MODE_MOV &&
                 track->enc->codec_id == AV_CODEC_ID_MP3 && track->timescale < 16000) {
-                if (track->enc->strict_std_compliance >= FF_COMPLIANCE_NORMAL) {
+                if (s->strict_std_compliance >= FF_COMPLIANCE_NORMAL) {
                     av_log(s, AV_LOG_ERROR, "track %d: muxing mp3 at %dhz is not standard, to mux anyway set strict to -1\n",
                         i, track->enc->sample_rate);
                     ret = AVERROR(EINVAL);