Revision 8be080ae libavformat/mxfdec.c

View differences:

libavformat/mxfdec.c
943 943
    int i;
944 944

  
945 945
    av_freep(&mxf->packages_refs);
946

  
947
    for (i = 0; i < s->nb_streams; i++)
948
        s->streams[i]->priv_data = NULL;
949

  
946 950
    for (i = 0; i < mxf->metadata_sets_count; i++) {
947 951
        switch (mxf->metadata_sets[i]->type) {
948 952
        case MultipleDescriptor:
......
955 959
        case MaterialPackage:
956 960
            av_freep(&((MXFPackage *)mxf->metadata_sets[i])->tracks_refs);
957 961
            break;
958
        case Track:
959
            mxf->metadata_sets[i] = NULL; /* will be freed later */
960
            break;
961 962
        default:
962 963
            break;
963 964
        }

Also available in: Unified diff