Revision 06466638

View differences:

libavformat/mxfenc.c
901 901
    return 0;
902 902
}
903 903

  
904
static void ff_audio_interleave_close(AVFormatContext *s)
905
{
906
    int i;
907
    for (i = 0; i < s->nb_streams; i++) {
908
        AVStream *st = s->streams[i];
909
        AudioInterleaveContext *aic = st->priv_data;
910

  
911
        if (st->codec->codec_type == CODEC_TYPE_AUDIO)
912
            av_fifo_free(&aic->fifo);
913
    }
914
}
915

  
904 916
static int mxf_write_header(AVFormatContext *s)
905 917
{
906 918
    MXFContext *mxf = s->priv_data;
......
1009 1021
        url_fseek(pb, 0, SEEK_SET);
1010 1022
        mxf_write_partition(s, 1, header_closed_partition_key, 1);
1011 1023
    }
1024

  
1025
    ff_audio_interleave_close(s);
1026

  
1012 1027
    mxf_free(s);
1013 1028
    return 0;
1014 1029
}

Also available in: Unified diff