1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-26 09:33:30 +00:00

demux/demux: avoid redundant condition

Closes #4414
This commit is contained in:
Raúl Peñacoba 2017-05-10 21:45:42 +02:00 committed by Ricardo Constantino
parent 9127939071
commit 71f97d9cf3
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531

View File

@ -792,7 +792,7 @@ static struct demux_packet *dequeue_packet(struct demux_stream *ds)
ds->bitrate = -1;
ds->last_br_ts = ts;
ds->last_br_bytes = 0;
} else if (d > 0 && d >= 0.5) { // a window of least 500ms for UI purposes
} else if (d >= 0.5) { // a window of least 500ms for UI purposes
ds->bitrate = ds->last_br_bytes / d;
ds->last_br_ts = ts;
ds->last_br_bytes = 0;