mirror of https://git.ffmpeg.org/ffmpeg.git
memleak fix by (Michel Bardiaux <mbardiaux at peaktime dot be>)
Originally committed as revision 2242 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
72a476c1e1
commit
9d90c37f39
|
@ -395,6 +395,10 @@ static int mpeg_mux_end(AVFormatContext *ctx)
|
||||||
/* write the end header */
|
/* write the end header */
|
||||||
//put_be32(&ctx->pb, ISO_11172_END_CODE);
|
//put_be32(&ctx->pb, ISO_11172_END_CODE);
|
||||||
//put_flush_packet(&ctx->pb);
|
//put_flush_packet(&ctx->pb);
|
||||||
|
|
||||||
|
for(i=0;i<ctx->nb_streams;i++)
|
||||||
|
av_freep(&ctx->streams[i]->priv_data);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue