Commit 8b1981c4 authored by Ilkka Ollakka's avatar Ilkka Ollakka

transcode: small refactor

parent a5d1e69c
...@@ -238,9 +238,10 @@ int transcode_audio_process( sout_stream_t *p_stream, ...@@ -238,9 +238,10 @@ int transcode_audio_process( sout_stream_t *p_stream,
i_drift ); i_drift );
date_Set( &id->interpolated_pts, p_audio_buf->i_pts ); date_Set( &id->interpolated_pts, p_audio_buf->i_pts );
i_pts = date_Get( &id->interpolated_pts ); i_pts = date_Get( &id->interpolated_pts );
}
if( likely(p_audio_buf->i_pts != VLC_TS_INVALID ) ) if( likely(p_audio_buf->i_pts != VLC_TS_INVALID ) )
p_sys->i_master_drift = p_audio_buf->i_pts - i_pts; i_drift = p_audio_buf->i_pts - i_pts;
}
p_sys->i_master_drift = i_drift;
date_Increment( &id->interpolated_pts, p_audio_buf->i_nb_samples ); date_Increment( &id->interpolated_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