Revision 094d9df7 ffmpeg.c

View differences:

ffmpeg.c
396 396
        if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb)
397 397
            url_fclose(s->pb);
398 398
        for(j=0;j<s->nb_streams;j++) {
399
            av_metadata_free(&s->streams[j]->metadata);
399 400
            av_free(s->streams[j]->codec);
400 401
            av_free(s->streams[j]);
401 402
        }
403
        for(j=0;j<s->nb_programs;j++) {
404
            av_metadata_free(&s->programs[j]->metadata);
405
        }
406
        for(j=0;j<s->nb_chapters;j++) {
407
            av_metadata_free(&s->chapters[j]->metadata);
408
        }
409
        av_metadata_free(&s->metadata);
402 410
        av_free(s);
403 411
    }
404 412
    for(i=0;i<nb_input_files;i++)

Also available in: Unified diff