Revision 72415b2a libavformat/gif.c

View differences:

libavformat/gif.c
266 266
    video_enc = NULL;
267 267
    for(i=0;i<s->nb_streams;i++) {
268 268
        enc = s->streams[i]->codec;
269
        if (enc->codec_type != CODEC_TYPE_AUDIO)
269
        if (enc->codec_type != AVMEDIA_TYPE_AUDIO)
270 270
            video_enc = enc;
271 271
    }
272 272

  
......
329 329
static int gif_write_packet(AVFormatContext *s, AVPacket *pkt)
330 330
{
331 331
    AVCodecContext *codec = s->streams[pkt->stream_index]->codec;
332
    if (codec->codec_type == CODEC_TYPE_AUDIO)
332
    if (codec->codec_type == AVMEDIA_TYPE_AUDIO)
333 333
        return 0; /* just ignore audio */
334 334
    else
335 335
        return gif_write_video(s, codec, pkt->data, pkt->size);

Also available in: Unified diff