Commit 7adcdae8 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: improve eof error

parent 6a494e1f
...@@ -1009,18 +1009,21 @@ static int Demux( demux_t *p_demux ) ...@@ -1009,18 +1009,21 @@ static int Demux( demux_t *p_demux )
{ {
if( stream_Seek( p_demux->s, i_candidate_pos ) ) if( stream_Seek( p_demux->s, i_candidate_pos ) )
{ {
msg_Warn( p_demux, "track[0x%x] will be disabled (eof?)", msg_Warn( p_demux, "track[0x%x] will be disabled (eof?)"
tk->i_track_ID ); ": Failed to seek to %"PRIu64,
tk->i_track_ID, i_candidate_pos );
MP4_TrackUnselect( p_demux, tk ); MP4_TrackUnselect( p_demux, tk );
goto end; goto end;
} }
i_current_pos = i_candidate_pos;
} }
/* now read pes */ /* now read pes */
if( !(p_block = MP4_Block_Read( p_demux, tk, i_samplessize )) ) if( !(p_block = MP4_Block_Read( p_demux, tk, i_samplessize )) )
{ {
msg_Warn( p_demux, "track[0x%x] will be disabled (eof?)", msg_Warn( p_demux, "track[0x%x] will be disabled (eof?)"
tk->i_track_ID ); ": Failed to read %d bytes sample at %"PRIu64,
tk->i_track_ID, i_samplessize, i_current_pos );
MP4_TrackUnselect( p_demux, tk ); MP4_TrackUnselect( p_demux, tk );
goto end; goto end;
} }
......
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