Commit fe499f7c authored by Steve Lhomme's avatar Steve Lhomme

transcode:audio: simplify code to reset the master sync

id->next_input_pts and p_audio_buf->i_pts are the same after the date_Set().
parent af8e8ad2
......@@ -355,9 +355,8 @@ int transcode_audio_process( sout_stream_t *p_stream,
"audio drift is too high (%"PRId64"), resetting master sync",
i_drift );
date_Set( &id->next_input_pts, p_audio_buf->i_pts );
i_pts = date_Get( &id->next_input_pts );
if( likely(p_audio_buf->i_pts != VLC_TS_INVALID ) )
i_drift = p_audio_buf->i_pts - i_pts;
i_drift = 0;
}
p_sys->i_master_drift = i_drift;
date_Increment( &id->next_input_pts, p_audio_buf->i_nb_samples );
......
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