Commit cd4ee62e authored by michael's avatar michael

Simplify by using FFMAX.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14776 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ad4273bb
......@@ -1039,9 +1039,7 @@ static void video_refresh_timer(void *opaque)
/* skip or repeat frame. We take into account the
delay to compute the threshold. I still don't know
if it is the best guess */
sync_threshold = AV_SYNC_THRESHOLD;
if (delay > sync_threshold)
sync_threshold = delay;
sync_threshold = FFMAX(AV_SYNC_THRESHOLD, delay);
if (fabs(diff) < AV_NOSYNC_THRESHOLD) {
if (diff <= -sync_threshold)
delay = 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