da455572ed
A combination of two problems made things go wrong with the timestamp of decoded audio. 1) The output buffer size is too small to hold the complete input. swresample handles this by buffering the input for use the next time it is called, however repeatedly doing this results in lots of buffering, and our way to compute the output timestamp from the input does not take it into account so it does weird things. Moreover, we would need to empty the buffer by calling swr_convert with NULL input in that case. Fix: make sure to not feed more data to swr_convert than it can output in our buffer. This way, no buffering occurs, only the matrixing conversion. 2) When using planar audio, the "frame size" is a bit different. Instead of adding sample size * channel count to 1 pointer, we need to add sample size * 1 to each channel buffer. Fix: add the "fInputFrameSize" which takes this into account, instead of misusing fOutputFrameSize for the input. Fixes #12460. |
||
---|---|---|
.. | ||
accelerants | ||
bluetooth | ||
decorators | ||
disk_systems | ||
index_server | ||
input_server | ||
kernel | ||
locale | ||
mail_daemon | ||
media | ||
network_settings | ||
screen_savers | ||
tracker | ||
translators | ||
Jamfile |