Revision a5e9102b

View differences:

libavformat/asf.c
730 730
    for(i=0;i<s->nb_streams;i++) {
731 731
        AVStream *st = s->streams[i];
732 732
        av_free(st->priv_data);
733
        av_free(st->codec->extradata);
734 733
    av_free(st->codec->palctrl);
735 734
    }
736 735
    return 0;
libavformat/avidec.c
898 898
        AVStream *st = s->streams[i];
899 899
        AVIStream *ast = st->priv_data;
900 900
        av_free(ast);
901
        av_free(st->codec->extradata);
902 901
        av_free(st->codec->palctrl);
903 902
    }
904 903

  
libavformat/matroska.c
2630 2630
        av_free(track);
2631 2631
    }
2632 2632

  
2633
    for (n = 0; n < s->nb_streams; n++) {
2634
        av_free(s->streams[n]->codec->extradata);
2635
    }
2636

  
2637 2633
    memset(matroska, 0, sizeof(MatroskaDemuxContext));
2638 2634

  
2639 2635
    return 0;
libavformat/nsvdec.c
705 705
            av_free(ast->index_entries);
706 706
            av_free(ast);
707 707
        }
708
        av_free(st->codec->extradata);
709 708
        av_free(st->codec->palctrl);
710 709
    }
711 710

  
libavformat/nut.c
1415 1415
    NUTContext *nut = s->priv_data;
1416 1416
    int i;
1417 1417

  
1418
    for(i=0;i<s->nb_streams;i++) {
1419
        av_freep(&s->streams[i]->codec->extradata);
1420
    }
1421 1418
    av_freep(&nut->stream);
1422 1419

  
1423 1420
    return 0;
libavformat/ogg.c
249 249

  
250 250
    ogg_stream_clear(&context->os) ;
251 251
    ogg_sync_clear(&context->oy) ;
252
    av_freep(&avfcontext->streams[0]->codec.extradata);
253 252

  
254 253
    return 0 ;
255 254
}
libavformat/ogg2.c
542 542
    for (i = 0; i < ogg->nstreams; i++){
543 543
        av_free (ogg->streams[i].buf);
544 544
        av_free (ogg->streams[i].private);
545
        av_freep (&s->streams[i]->codec->extradata);
546 545
    }
547 546
    av_free (ogg->streams);
548 547
    return 0;
libavformat/smacker.c
329 329
    if(smk->frm_flags)
330 330
        av_free(smk->frm_flags);
331 331

  
332
    for(i=0;i<s->nb_streams;i++) {
333
        AVStream *st = s->streams[i];
334
        if(st->codec->extradata)
335
            av_free(st->codec->extradata);
336
    }
337 332
    return 0;
338 333
}
339 334

  
libavformat/utils.c
2167 2167
            av_parser_close(st->parser);
2168 2168
        }
2169 2169
        av_free(st->index_entries);
2170
        av_free(st->codec->extradata);
2170 2171
        av_free(st->codec);
2171 2172
        av_free(st);
2172 2173
    }

Also available in: Unified diff