diff options
author | Johns <johns98@gmx.net> | 2012-03-06 15:39:29 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-03-06 15:39:29 +0100 |
commit | 7931909e28df715e4d54d082dff5a8f46b669407 (patch) | |
tree | 2b64e005302bb05c99ca157e5dccca0a2b94d5ac /codec.c | |
parent | 129c139ed7e64591a27a27ea11d66a5f02fd5f06 (diff) | |
download | vdr-plugin-softhddevice-7931909e28df715e4d54d082dff5a8f46b669407.tar.gz vdr-plugin-softhddevice-7931909e28df715e4d54d082dff5a8f46b669407.tar.bz2 |
Workaround should be for abs.
Diffstat (limited to 'codec.c')
-rw-r--r-- | codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -932,7 +932,7 @@ static void CodecAudioSetClock(AudioDecoder * audio_decoder, int64_t pts) int distance; // try workaround for buggy ffmpeg 0.10 - if (audio_decoder->DriftCorr < 2000) { + if (abs(audio_decoder->DriftCorr) < 2000) { distance = (pts_diff * audio_decoder->HwSampleRate) / (900 * 1000); } else { distance = (pts_diff * audio_decoder->HwSampleRate) / (90 * 1000); |