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

bcoudurier subversion
Wed May 21 22:50:41 CEST 2008


Author: bcoudurier
Date: Wed May 21 22:50:41 2008
New Revision: 13222

Log:
dont forget to free packet, fix memleak

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Wed May 21 22:50:41 2008
@@ -2192,8 +2192,10 @@ static int http_prepare_data(HTTPContext
                         c->buffer_end = c->pb_buffer + len;
 
                         codec->frame_number++;
-                        if (len == 0)
+                        if (len == 0) {
+                            av_free_packet(&pkt);
                             goto redo;
+                        }
                     }
                     av_free_packet(&pkt);
                 }




More information about the ffmpeg-cvslog mailing list