Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refs #10428. Fix off-by-1000 error in RingBuffer.

The estimated bit rate is in kilobits not bits...

Also increase the seconds of buffering from 0.25 to 0.35
for a better LiveTV experience.
  • Loading branch information...
commit 483e06f6b8a9066f66cef3fcf0a5f844519f51f9 1 parent 445faaa
@daniel-kristjansson daniel-kristjansson authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/ringbuffer.cpp
View
4 mythtv/libs/libmythtv/ringbuffer.cpp
@@ -378,9 +378,9 @@ void RingBuffer::CalcReadAheadThresh(void)
readblocksize = max(rbs,readblocksize);
// minumum seconds of buffering before allowing read
- float secs_min = 0.25;
+ float secs_min = 0.35;
// set the minimum buffering before allowing ffmpeg read
- fill_min = (uint) ((estbitrate * secs_min) * 0.125f);
+ fill_min = (uint) ((estbitrate * 1000 * secs_min) * 0.125f);
// make this a multiple of ffmpeg block size..
if (fill_min >= CHUNK || rbs >= CHUNK)
{
Please sign in to comment.
Something went wrong with that request. Please try again.