[vlc-commits] aout: remove paranoid PTS checks
Rémi Denis-Courmont
git at videolan.org
Sat May 5 17:46:05 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri May 4 19:50:18 2018 +0300| [03ef1dfb21a06e021246fee872a7bd068609b054] | committer: Rémi Denis-Courmont
aout: remove paranoid PTS checks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=03ef1dfb21a06e021246fee872a7bd068609b054
---
src/audio_output/dec.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 28d726f1ba..4a0a42ff10 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -359,20 +359,6 @@ int aout_DecPlay(audio_output_t *aout, block_t *block)
if (unlikely(ret == AOUT_DEC_FAILED))
goto drop; /* Pipeline is unrecoverably broken :-( */
- const mtime_t now = mdate (), advance = block->i_pts - now;
- if (advance < -AOUT_MAX_PTS_DELAY)
- { /* Late buffer can be caused by bugs in the decoder, by scheduling
- * latency spikes (excessive load, SIGSTOP, etc.) or if buffering is
- * insufficient. We assume the PTS is wrong and play the buffer anyway:
- * Hopefully video has encountered a similar PTS problem as audio. */
- msg_Warn (aout, "buffer too late (%"PRId64" us): dropped", advance);
- goto drop;
- }
- if (advance > AOUT_MAX_ADVANCE_TIME)
- { /* Early buffers can only be caused by bugs in the decoder. */
- msg_Err (aout, "buffer too early (%"PRId64" us): dropped", advance);
- goto drop;
- }
if (block->i_flags & BLOCK_FLAG_DISCONTINUITY)
owner->sync.discontinuity = true;
More information about the vlc-commits
mailing list