Commit 58c8f9f3 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: asf: preroll to seek time from index keyframes (fix #7890)

parent 050333c7
...@@ -261,7 +261,13 @@ static int SeekIndex( demux_t *p_demux, mtime_t i_date, float f_pos ) ...@@ -261,7 +261,13 @@ static int SeekIndex( demux_t *p_demux, mtime_t i_date, float f_pos )
uint64_t i_offset = (uint64_t)p_index->index_entry[i_entry].i_packet_number * uint64_t i_offset = (uint64_t)p_index->index_entry[i_entry].i_packet_number *
p_sys->p_fp->i_min_data_packet_size; p_sys->p_fp->i_min_data_packet_size;
return stream_Seek( p_demux->s, p_sys->i_data_begin + i_offset );
if ( stream_Seek( p_demux->s, p_sys->i_data_begin + i_offset ) == VLC_SUCCESS )
{
es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, VLC_TS_0 + i_date );
return VLC_SUCCESS;
}
else return VLC_EGENERIC;
} }
static void SeekPrepare( demux_t *p_demux ) static void SeekPrepare( demux_t *p_demux )
......
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