Commit 750736e0 authored by Pierre's avatar Pierre

avformat: Don't cast function return value.

parent 3c55f6d8
......@@ -532,7 +532,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
i64 = stream_Size( p_demux->s );
if( i64 > 0 )
{
*pf = (double)stream_Tell( p_demux->s ) / (double)i64;
double current = stream_Tell( p_demux->s );
*pf = current / (double)i64;
}
if( (p_sys->ic->duration != (int64_t)AV_NOPTS_VALUE) && (p_sys->i_pcr > 0) )
......
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