[FFmpeg-cvslog] r13874 - trunk/ffserver.c

bcoudurier subversion
Sun Jun 22 05:25:20 CEST 2008


Author: bcoudurier
Date: Sun Jun 22 05:25:20 2008
New Revision: 13874

Log:
check av_open_input_stream error

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sun Jun 22 05:25:20 2008
@@ -2494,7 +2494,10 @@ static int http_receive_data(HTTPContext
             if (!fmt_in)
                 goto fail;
 
-            av_open_input_stream(&s, pb, c->stream->feed_filename, fmt_in, NULL);
+            if (av_open_input_stream(&s, pb, c->stream->feed_filename, fmt_in, NULL) < 0) {
+                av_free(pb);
+                goto fail;
+            }
 
             /* Now we have the actual streams */
             if (s->nb_streams != feed->nb_streams) {




More information about the ffmpeg-cvslog mailing list