X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmxfenc.c;h=6a6b7c2079df5557a587d4e06de9783bf0d85ff8;hb=fcc39099087e156196e3444ef479b2c778566405;hp=bba01158fa37c2569b4c16eb46d1677bc9e1a784;hpb=746095bc29817875ac89a7d4771f8a54895b3cbb;p=ffmpeg diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index bba01158fa3..6a6b7c2079d 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1023,7 +1023,7 @@ 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) + if (show_warnings && mxf->channel_count != -1) av_log(s, AV_LOG_ERROR, "-d10_channelcount requires MXF D-10 and will be ignored\n"); avio_wb32(pb, st->codec->channels); }