Commit 156fbbb5 authored by Matthew Gregan's avatar Matthew Gregan Committed by James Almer

avformat/movenc: Restrict experimental VP9 support to MODE_MP4.

Signed-off-by: 's avatarMatthew Gregan <kinetik@flim.org>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 2d73d256
......@@ -5744,8 +5744,11 @@ static int mov_init(AVFormatContext *s)
pix_fmt == AV_PIX_FMT_MONOWHITE ||
pix_fmt == AV_PIX_FMT_MONOBLACK;
}
if (track->mode == MODE_MP4 &&
track->par->codec_id == AV_CODEC_ID_VP9) {
if (track->par->codec_id == AV_CODEC_ID_VP9) {
if (track->mode != MODE_MP4) {
av_log(s, AV_LOG_ERROR, "VP9 only supported in MP4.\n");
return AVERROR(EINVAL);
}
if (s->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
av_log(s, AV_LOG_ERROR,
"VP9 in MP4 support is experimental, add "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment