Commit dea377fc authored by James Zern's avatar James Zern Committed by Michael Niedermayer

ivfenc: support VP9

libvpx tools accept vp9 ivf files
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4582e116
...@@ -30,8 +30,9 @@ static int ivf_write_header(AVFormatContext *s) ...@@ -30,8 +30,9 @@ static int ivf_write_header(AVFormatContext *s)
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
ctx = s->streams[0]->codec; ctx = s->streams[0]->codec;
if (ctx->codec_type != AVMEDIA_TYPE_VIDEO || ctx->codec_id != AV_CODEC_ID_VP8) { if (ctx->codec_type != AVMEDIA_TYPE_VIDEO ||
av_log(s, AV_LOG_ERROR, "Currently only VP8 is supported!\n"); !(ctx->codec_id == AV_CODEC_ID_VP8 || ctx->codec_id == AV_CODEC_ID_VP9)) {
av_log(s, AV_LOG_ERROR, "Currently only VP8 and VP9 are supported!\n");
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
avio_write(pb, "DKIF", 4); avio_write(pb, "DKIF", 4);
......
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