Revision b2ed95ec libavformat/ivfenc.c

View differences:

libavformat/ivfenc.c
30 30
        return AVERROR(EINVAL);
31 31
    }
32 32
    ctx = s->streams[0]->codec;
33
    if (ctx->codec_type != CODEC_TYPE_VIDEO || ctx->codec_id != CODEC_ID_VP8) {
33
    if (ctx->codec_type != AVMEDIA_TYPE_VIDEO || ctx->codec_id != CODEC_ID_VP8) {
34 34
        av_log(s, AV_LOG_ERROR, "Currently only VP8 is supported!\n");
35 35
        return AVERROR(EINVAL);
36 36
    }

Also available in: Unified diff