Simplify by using FFMAX.
Originally committed as revision 14776 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
cce540c5e7
commit
8a9d72a0ff
4
ffplay.c
4
ffplay.c
@ -1039,9 +1039,7 @@ static void video_refresh_timer(void *opaque)
|
|||||||
/* skip or repeat frame. We take into account the
|
/* skip or repeat frame. We take into account the
|
||||||
delay to compute the threshold. I still don't know
|
delay to compute the threshold. I still don't know
|
||||||
if it is the best guess */
|
if it is the best guess */
|
||||||
sync_threshold = AV_SYNC_THRESHOLD;
|
sync_threshold = FFMAX(AV_SYNC_THRESHOLD, delay);
|
||||||
if (delay > sync_threshold)
|
|
||||||
sync_threshold = delay;
|
|
||||||
if (fabs(diff) < AV_NOSYNC_THRESHOLD) {
|
if (fabs(diff) < AV_NOSYNC_THRESHOLD) {
|
||||||
if (diff <= -sync_threshold)
|
if (diff <= -sync_threshold)
|
||||||
delay = 0;
|
delay = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user