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

bcoudurier subversion
Mon May 11 04:36:57 CEST 2009


Author: bcoudurier
Date: Mon May 11 04:36:57 2009
New Revision: 18793

Log:
move free data in the video case

Modified:
   trunk/libavformat/mpegtsenc.c

Modified: trunk/libavformat/mpegtsenc.c
==============================================================================
--- trunk/libavformat/mpegtsenc.c	Mon May 11 04:30:29 2009	(r18792)
+++ trunk/libavformat/mpegtsenc.c	Mon May 11 04:36:57 2009	(r18793)
@@ -741,6 +741,7 @@ static int mpegts_write_packet(AVFormatC
         st->codec->codec_type == CODEC_TYPE_VIDEO) {
         // for video and subtitle, write a single pes packet
         mpegts_write_pes(s, st, buf, size, pts, dts);
+        av_free(data);
         return 0;
     }
 
@@ -769,8 +770,6 @@ static int mpegts_write_packet(AVFormatC
         }
     }
 
-    av_free(data);
-
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list