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

bcoudurier subversion
Sun Jun 22 05:30:57 CEST 2008


Author: bcoudurier
Date: Sun Jun 22 05:30:53 2008
New Revision: 13875

Log:
move code after possible failure, so no need to free

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sun Jun 22 05:30:53 2008
@@ -2486,14 +2486,14 @@ static int http_receive_data(HTTPContext
             AVInputFormat *fmt_in;
             int i;
 
-            url_open_buf(&pb, c->buffer, c->buffer_end - c->buffer, URL_RDONLY);
-            pb->is_streamed = 1;
-
             /* use feed output format name to find corresponding input format */
             fmt_in = av_find_input_format(feed->fmt->name);
             if (!fmt_in)
                 goto fail;
 
+            url_open_buf(&pb, c->buffer, c->buffer_end - c->buffer, URL_RDONLY);
+            pb->is_streamed = 1;
+
             if (av_open_input_stream(&s, pb, c->stream->feed_filename, fmt_in, NULL) < 0) {
                 av_free(pb);
                 goto fail;




More information about the ffmpeg-cvslog mailing list