[FFmpeg-cvslog] r22428 - trunk/libavformat/mpegtsenc.c

bcoudurier subversion
Wed Mar 10 10:20:32 CET 2010


Author: bcoudurier
Date: Wed Mar 10 10:20:32 2010
New Revision: 22428

Log:
In mpegts muxer, free adts context and temporary data

Modified:
   trunk/libavformat/mpegtsenc.c

Modified: trunk/libavformat/mpegtsenc.c
==============================================================================
--- trunk/libavformat/mpegtsenc.c	Wed Mar 10 10:19:14 2010	(r22427)
+++ trunk/libavformat/mpegtsenc.c	Wed Mar 10 10:20:32 2010	(r22428)
@@ -869,6 +869,8 @@ static int mpegts_write_packet(AVFormatC
     memcpy(ts_st->payload + ts_st->payload_index, buf, size);
     ts_st->payload_index += size;
 
+    av_free(data);
+
     return 0;
 }
 
@@ -888,6 +890,7 @@ static int mpegts_write_end(AVFormatCont
             mpegts_write_pes(s, st, ts_st->payload, ts_st->payload_index,
                              ts_st->payload_pts, ts_st->payload_dts);
         }
+        av_freep(&ts_st->adts);
     }
     put_flush_packet(s->pb);
 



More information about the ffmpeg-cvslog mailing list