Commit 8182c380 authored by G Finch's avatar G Finch Committed by Ilkka Ollakka

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

Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent 208dbc5f
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment