static void mkv_free(MatroskaMuxContext *mkv) {


















    if (mkv->main_seekhead) {

        av_freep(&mkv->main_seekhead->entries);

        av_freep(&mkv->main_seekhead);


    if (mkv->cues) {

        av_freep(&mkv->cues->entries);

        av_freep(&mkv->cues);


    if (mkv->attachments) {

        av_freep(&mkv->attachments->entries);

        av_freep(&mkv->attachments);


    av_freep(&mkv->tracks);

    av_freep(&mkv->stream_durations);

    av_freep(&mkv->stream_duration_offsets);

static void mkv_free(MatroskaMuxContext *mkv) {


















    if (mkv->main_seekhead) {

        av_freep(&mkv->main_seekhead->entries);

        av_freep(&mkv->main_seekhead);


    if (mkv->cues) {

        av_freep(&mkv->cues->entries);

        av_freep(&mkv->cues);


    if (mkv->attachments) {

        av_freep(&mkv->attachments->entries);

        av_freep(&mkv->attachments);


    av_freep(&mkv->tracks);

    av_freep(&mkv->stream_durations);

    av_freep(&mkv->stream_duration_offsets);

static void FUNC_0(MatroskaMuxContext *VAR_0) {


















    if (VAR_0->main_seekhead) {

        av_freep(&VAR_0->main_seekhead->entries);

        av_freep(&VAR_0->main_seekhead);


    if (VAR_0->cues) {

        av_freep(&VAR_0->cues->entries);

        av_freep(&VAR_0->cues);


    if (VAR_0->attachments) {

        av_freep(&VAR_0->attachments->entries);

        av_freep(&VAR_0->attachments);


    av_freep(&VAR_0->tracks);

    av_freep(&VAR_0->stream_durations);

    av_freep(&VAR_0->stream_duration_offsets);

static void FUNC_0(MatroskaMuxContext *VAR_0) { if (VAR_0->main_seekhead) { av_freep(&VAR_0->main_seekhead->entries); av_freep(&VAR_0->main_seekhead); if (VAR_0->cues) { av_freep(&VAR_0->cues->entries); av_freep(&VAR_0->cues); if (VAR_0->attachments) { av_freep(&VAR_0->attachments->entries); av_freep(&VAR_0->attachments); av_freep(&VAR_0->tracks); av_freep(&VAR_0->stream_durations); av_freep(&VAR_0->stream_duration_offsets);