[mythtv] [PATCH] RingBuffer Bitrate

Kenneth Aafløy lists at kenneth.aafloy.net
Sun Oct 24 20:12:14 UTC 2004


Hi,

I'm currently doing some work on getting transitions between audio/video to 
audio-only working, and I've found that the bitrate calculation in the 
RingBuffer won't work with this. I've attached a patch that calculates the 
readblocksize/fillthreshold so that lower bitrate streams gets sane values.

From the looks of the previous code some decoder must have been reporting the 
bitrate in kilobits/s while avfd was reporting this in bits/s. I've given the 
IvTvDecoder a 256000 bytes readblocksize, and fixed the initial value in 
nuppeldecoder to be 256kbit/s in case it's audio only. Someone should have a 
look at the FIXME in IvTvDecoder and the calculation in nuppeldecoder to 
verify that the bitrate is reported in bits/s.

Kenneth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitrate.patch
Type: text/x-diff
Size: 4718 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041024/1b09723c/bitrate.bin


More information about the mythtv-dev mailing list