diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 5b405ce3c6..73f1b28622 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -395,6 +395,10 @@ static int mpeg_mux_end(AVFormatContext *ctx) /* write the end header */ //put_be32(&ctx->pb, ISO_11172_END_CODE); //put_flush_packet(&ctx->pb); + + for(i=0;inb_streams;i++) + av_freep(&ctx->streams[i]->priv_data); + return 0; }