Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Sep 26, 2014
1 parent f5f5819 commit 42cd32b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/org/mangui/hls/demux/TSDemuxer.as
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ package org.mangui.hls.demux {
private function _parseTimer(e : Event) : void {
var start_time : int = getTimer();
_data.position = _read_position;
// dont spend more than 20ms demuxing TS packets to avoid loosing frames
while ((_data.bytesAvailable >= 188) && ((getTimer() - start_time) < 20)) {
_parseTSPacket();
}
Expand Down

0 comments on commit 42cd32b

Please sign in to comment.