Skip to content
Snippets Groups Projects
Commit 9a0b28b1 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed: Committed by Jean-Baptiste Kempf
Browse files

demux: ogg: fix non fastseek lookup issues with small files

parent ff7e38fe
No related branches found
No related tags found
1 merge request!1951demux: ogg: fix non fastseek lookup issues with small files
Pipeline #223459 passed with stage
in 16 minutes and 53 seconds
......@@ -49,6 +49,7 @@
#define SEGMENT_NOT_FOUND -1
#define MAX_PAGE_SIZE 65307
#define MIN_PAGE_SIZE 27
typedef struct packetStartCoordinates
{
int64_t i_pos;
......@@ -862,7 +863,7 @@ int Oggseek_BlindSeektoPosition( demux_t *p_demux, logical_stream_t *p_stream,
{
/* Otherwise, we just sync to the next keyframe we meet */
i_pagepos = OggForwardSeekToFrame( p_demux,
__MAX ( i_size - MAX_PAGE_SIZE, p_stream->i_data_start ),
__MAX ( i_size - MIN_PAGE_SIZE, p_stream->i_data_start ),
stream_Size( p_demux->s ),
p_stream, i_granule, false );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment