Commit cbd5e737 authored by James Almer's avatar James Almer

Merge commit '44a17310'

* commit '44a17310':
  ivf: Support VP9 and AV1 as well

See e8f0a463Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 18195e57 44a17310
...@@ -37,8 +37,9 @@ static int ivf_write_header(AVFormatContext *s) ...@@ -37,8 +37,9 @@ static int ivf_write_header(AVFormatContext *s)
} }
par = s->streams[0]->codecpar; par = s->streams[0]->codecpar;
if (par->codec_type != AVMEDIA_TYPE_VIDEO || if (par->codec_type != AVMEDIA_TYPE_VIDEO ||
!(par->codec_id == AV_CODEC_ID_VP8 || par->codec_id == AV_CODEC_ID_VP9 || !(par->codec_id == AV_CODEC_ID_AV1 ||
par->codec_id == AV_CODEC_ID_AV1)) { par->codec_id == AV_CODEC_ID_VP8 ||
par->codec_id == AV_CODEC_ID_VP9)) {
av_log(s, AV_LOG_ERROR, "Currently only VP8, VP9 and AV1 are supported!\n"); av_log(s, AV_LOG_ERROR, "Currently only VP8, VP9 and AV1 are supported!\n");
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
......
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