Revision 01f4895c libavformat/ogg2.c

View differences:

libavformat/ogg2.c
430 430
    ogg_t *ogg = s->priv_data;
431 431
    ogg_stream_t *os = ogg->streams + i;
432 432
    AVStream *st = s->streams[i];
433
    AVCodecContext *codec = &st->codec;
433
    AVCodecContext *codec = st->codec;
434 434
    uint64_t pts = AV_NOPTS_VALUE;
435 435

  
436 436
    if(os->codec->gptopts){
......
537 537
    for (i = 0; i < ogg->nstreams; i++){
538 538
        av_free (ogg->streams[i].buf);
539 539
        av_free (ogg->streams[i].private);
540
        av_freep (&s->streams[i]->codec.extradata);
540
        av_freep (&s->streams[i]->codec->extradata);
541 541
    }
542 542
    av_free (ogg->streams);
543 543
    return 0;

Also available in: Unified diff