提交 820ffaed 编写于 作者: T Tudor Suciu 提交者: Michael Niedermayer

avformat/matroskaenc: Allow VP9 and Opus in webm

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 c3316ddb
......@@ -619,9 +619,11 @@ static int mkv_write_tracks(AVFormatContext *s)
}
if (mkv->mode == MODE_WEBM && !(codec->codec_id == AV_CODEC_ID_VP8 ||
codec->codec_id == AV_CODEC_ID_VP9 ||
((codec->codec_id == AV_CODEC_ID_OPUS)&&(codec->strict_std_compliance <= FF_COMPLIANCE_EXPERIMENTAL)) ||
codec->codec_id == AV_CODEC_ID_VORBIS)) {
av_log(s, AV_LOG_ERROR,
"Only VP8 video and Vorbis audio are supported for WebM.\n");
"Only VP8,VP9 video and Vorbis,Opus(experimental, use -strict -2) audio are supported for WebM.\n");
return AVERROR(EINVAL);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册