[FFmpeg-cvslog] avformat/movenc: Use strict_std_compliance from the muxer layer instead of the encoder layer
Michael Niedermayer
git at videolan.org
Wed Dec 30 20:20:14 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 27 01:58:24 2015 +0200| [389ce22b5f093e9eff3dc11ab7dd72fd12dcc17c] | committer: Michael Niedermayer
avformat/movenc: Use strict_std_compliance from the muxer layer instead of the encoder layer
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=389ce22b5f093e9eff3dc11ab7dd72fd12dcc17c
---
libavformat/movenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index c059407..5594c6d 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list