|
|
@@ -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) { |
|
|
|
|
|
av_log(s, AV_LOG_ERROR, "Currently only VP8 is supported!\n"); |
|
|
|
|
|
|
|
|
if (ctx->codec_type != AVMEDIA_TYPE_VIDEO || |
|
|
|
|
|
!(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); |
|
|
|