[FFmpeg-cvslog] r24960 - trunk/libavformat/mmsh.c

rbultje subversion
Sun Aug 29 01:55:26 CEST 2010


Author: rbultje
Date: Sun Aug 29 01:55:26 2010
New Revision: 24960

Log:
stream_selection can be freed in the fail case, in which case it's unassigned.
Therefore, init it with NULL to prevent a crash on invalid streams.

Patch by Zhentan Feng <spyfeng gmail com>.

Modified:
   trunk/libavformat/mmsh.c

Modified: trunk/libavformat/mmsh.c
==============================================================================
--- trunk/libavformat/mmsh.c	Sat Aug 28 23:17:49 2010	(r24959)
+++ trunk/libavformat/mmsh.c	Sun Aug 29 01:55:26 2010	(r24960)
@@ -214,7 +214,7 @@ static int mmsh_open(URLContext *h, cons
 {
     int i, port, err;
     char httpname[256], path[256], host[128], location[1024];
-    char *stream_selection;
+    char *stream_selection = NULL;
     char headers[1024];
     MMSHContext *mmsh;
     MMSContext *mms;



More information about the ffmpeg-cvslog mailing list