Changeset 483e06f6b in mythtv


Ignore:
Timestamp:
Jul 24, 2012, 6:33:00 PM (12 years ago)
Author:
Daniel Thor Kristjansson <danielk@…>
Branches:
devel/2020-player, devel/ffmpeg-resync, fixes/0.26, fixes/0.27, fixes/0.28, fixes/29, fixes/30, fixes/31, github-templates, master
Children:
50957d5b6, 643ad3e9f8
Parents:
445faaa47
git-author:
Daniel Thor Kristjansson <danielk@…> (07/24/12 18:33:00)
git-committer:
Daniel Thor Kristjansson <danielk@…> (07/24/12 18:33:21)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mythtv/libs/libmythtv/ringbuffer.cpp

    r445faaa47 r483e06f6b  
    379379
    380380    // minumum seconds of buffering before allowing read
    381     float secs_min = 0.25;
     381    float secs_min = 0.35;
    382382    // set the minimum buffering before allowing ffmpeg read
    383     fill_min        = (uint) ((estbitrate * secs_min) * 0.125f);
     383    fill_min  = (uint) ((estbitrate * 1000 * secs_min) * 0.125f);
    384384    // make this a multiple of ffmpeg block size..
    385385    if (fill_min >= CHUNK || rbs >= CHUNK)
Note: See TracChangeset for help on using the changeset viewer.