[Ffmpeg-cvslog] r5523 - trunk/libavformat/ogg2.c

mru subversion
Sun Jun 25 14:23:54 CEST 2006


Author: mru
Date: Sun Jun 25 14:23:54 2006
New Revision: 5523

Modified:
   trunk/libavformat/ogg2.c

Log:
10l: don't allocate a new buffer quite so often


Modified: trunk/libavformat/ogg2.c
==============================================================================
--- trunk/libavformat/ogg2.c	(original)
+++ trunk/libavformat/ogg2.c	Sun Jun 25 14:23:54 2006
@@ -193,6 +193,7 @@
     os = ogg->streams + idx;
     os->serial = serial;
     os->bufsize = DECODER_BUFFER_SIZE;
+    os->buf = av_malloc(os->bufsize);
     os->header = -1;
 
     st = av_new_stream (s, idx);
@@ -279,7 +280,7 @@
 
     os = ogg->streams + idx;
 
-    if(os->segp == os->nsegs)
+    if(os->psize > 0)
         ogg_new_buf(ogg, idx);
 
     if (get_buffer (bc, os->segments, nsegs) < nsegs)




More information about the ffmpeg-cvslog mailing list