Hi! Attached patch removes a warning that is always shown if the default mxf muxer is used.
Please comment, Carl Eugen
From 07718cad8cefbafd18355f91b9548118308c42bd Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <ceho...@ag.or.at> Date: Sat, 8 Oct 2016 11:23:41 +0200 Subject: [PATCH] lavf/mxfenc: Do not print a useless error message. The option d10_channelcount only exists for mxf_d10. --- libavformat/mxfenc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 7733ef8..afea117 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1169,8 +1169,6 @@ static void mxf_write_generic_sound_common(AVFormatContext *s, AVStream *st, con av_log(s, AV_LOG_WARNING, "d10_channelcount shall be set to 4 or 8 : the output will not comply to MXF D-10 specs\n"); avio_wb32(pb, mxf->channel_count); } else { - if (show_warnings && mxf->channel_count != -1 && s->oformat != &ff_mxf_opatom_muxer) - av_log(s, AV_LOG_ERROR, "-d10_channelcount requires MXF D-10 and will be ignored\n"); avio_wb32(pb, st->codecpar->channels); } -- 1.7.10.4
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel