Revision 01f4895c libavformat/gif.c

View differences:

libavformat/gif.c
327 327

  
328 328
    video_enc = NULL;
329 329
    for(i=0;i<s->nb_streams;i++) {
330
        enc = &s->streams[i]->codec;
330
        enc = s->streams[i]->codec;
331 331
        if (enc->codec_type != CODEC_TYPE_AUDIO)
332 332
            video_enc = enc;
333 333
    }
......
388 388

  
389 389
static int gif_write_packet(AVFormatContext *s, AVPacket *pkt)
390 390
{
391
    AVCodecContext *codec = &s->streams[pkt->stream_index]->codec;
391
    AVCodecContext *codec = s->streams[pkt->stream_index]->codec;
392 392
    if (codec->codec_type == CODEC_TYPE_AUDIO)
393 393
        return 0; /* just ignore audio */
394 394
    else

Also available in: Unified diff