Skip to content

Commit

Permalink
ts: do not call stream_Size two times
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoire committed Jan 2, 2014
1 parent 83c6f12 commit c9f6301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/demux/ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,7 @@ static int Seek( demux_t *p_demux, double f_percent )
mtime_t i_target_pcr = (p_sys->i_last_pcr - p_sys->i_first_pcr) * f_percent + p_sys->i_first_pcr;

int64_t i_head_pos = 0;
int64_t i_tail_pos = stream_Size( p_demux->s );
int64_t i_tail_pos;
{
mtime_t i_adjust = 0;
int i;
Expand Down

0 comments on commit c9f6301

Please sign in to comment.