Revision 72415b2a libavformat/ffmenc.c

View differences:

libavformat/ffmenc.c
119 119
        put_be32(pb, codec->debug);
120 120
        /* specific info */
121 121
        switch(codec->codec_type) {
122
        case CODEC_TYPE_VIDEO:
122
        case AVMEDIA_TYPE_VIDEO:
123 123
            put_be32(pb, codec->time_base.num);
124 124
            put_be32(pb, codec->time_base.den);
125 125
            put_be16(pb, codec->width);
......
168 168
            put_be32(pb, codec->refs);
169 169
            put_be32(pb, codec->directpred);
170 170
            break;
171
        case CODEC_TYPE_AUDIO:
171
        case AVMEDIA_TYPE_AUDIO:
172 172
            put_be32(pb, codec->sample_rate);
173 173
            put_le16(pb, codec->channels);
174 174
            put_le16(pb, codec->frame_size);

Also available in: Unified diff