Commit ae71018b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Rafaël Carré

oggseek: Reset stream after searching for the last frame

(cherry picked from commit 78a8771f4c69bdb2080a06f8b0c8db4d5675f6b9)
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent a93776b5
...@@ -705,6 +705,10 @@ static int64_t find_last_theora_frame ( demux_t *p_demux, logical_stream_t *p_st ...@@ -705,6 +705,10 @@ static int64_t find_last_theora_frame ( demux_t *p_demux, logical_stream_t *p_st
* adverse effects. */ * adverse effects. */
seek_byte( p_demux, 0 ); seek_byte( p_demux, 0 );
/* Reset stream states */
p_stream->i_serial_no = ogg_page_serialno( &p_demux->p_sys->current_page );
ogg_stream_init( &p_stream->os, p_stream->i_serial_no );
ogg_stream_pagein( &p_stream->os, &p_demux->p_sys->current_page );
return i_frame; return i_frame;
} }
......
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