[vlc-commits] commit: Ogg-page-size-to-oggseek-bytes-to-read (G Finch )

git at videolan.org git at videolan.org
Tue Aug 10 12:39:17 CEST 2010


vlc | branch: master | G Finch <salsaman at gmail.com> | Thu Aug  5 12:14:06 2010 -0300| [8182c380aaee6ca5232573e901cfe2db23174df0] | committer: Ilkka Ollakka 

Ogg-page-size-to-oggseek-bytes-to-read

Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8182c380aaee6ca5232573e901cfe2db23174df0
---

 modules/demux/ogg.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 098ba7f..ea04ae7 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -105,7 +105,6 @@ typedef struct
     } sh;
 } stream_header_t;
 
-#define OGG_BLOCK_SIZE 4096
 
 /* Some defines from OggDS */
 #define PACKET_TYPE_HEADER   0x01
@@ -470,9 +469,9 @@ static int Ogg_ReadPage( demux_t *p_demux, ogg_page *p_oggpage )
 
     while( ogg_sync_pageout( &p_ogg->oy, p_oggpage ) != 1 )
     {
-        p_buffer = ogg_sync_buffer( &p_ogg->oy, OGG_BLOCK_SIZE );
+        p_buffer = ogg_sync_buffer( &p_ogg->oy, OGGSEEK_BYTES_TO_READ );
 
-        i_read = stream_Read( p_demux->s, p_buffer, OGG_BLOCK_SIZE );
+        i_read = stream_Read( p_demux->s, p_buffer, OGGSEEK_BYTES_TO_READ );
         if( i_read <= 0 )
             return VLC_EGENERIC;
 



More information about the vlc-commits mailing list