[FFmpeg-cvslog] r19836 - trunk/libavformat/mpegts.c

bcoudurier subversion
Sun Sep 13 22:08:47 CEST 2009


Author: bcoudurier
Date: Sun Sep 13 22:08:47 2009
New Revision: 19836

Log:
ensure pes buffer is set to avoid segv

Modified:
   trunk/libavformat/mpegts.c

Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c	Sun Sep 13 22:06:49 2009	(r19835)
+++ trunk/libavformat/mpegts.c	Sun Sep 13 22:08:47 2009	(r19836)
@@ -1027,7 +1027,7 @@ static int mpegts_push_data(MpegTSFilter
             }
             break;
         case MPEGTS_PAYLOAD:
-            if (buf_size > 0) {
+            if (buf_size > 0 && pes->buffer) {
                 if (pes->data_index+buf_size > pes->total_size) {
                     new_pes_packet(pes, ts->pkt);
                     pes->total_size = MAX_PES_PAYLOAD;



More information about the ffmpeg-cvslog mailing list