Fix playvid desync due to losing some samples during resampling.
I was limiting the decoder output to as many samples as were in the input - thus dropping ~10% of the samples at times. D'oh!
This commit is contained in:
parent
177959c3e7
commit
bc8f978a5e
1 changed files with 1 additions and 2 deletions
|
@ -139,9 +139,8 @@ void moreaudio(float *lb, float *rb, int samples)
|
|||
}
|
||||
|
||||
buffered_samples = avresample_convert(resampler,
|
||||
(uint8_t **)resampleOutput, 0, pAudioFrame->nb_samples,
|
||||
(uint8_t **)resampleOutput, 0, AUDIO_BUF,
|
||||
pAudioFrame->data, pAudioFrame->linesize[0], pAudioFrame->nb_samples);
|
||||
|
||||
pAudioBuffer = resampleOutput[0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue