summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-03-06 15:39:29 +0100
committerJohns <johns98@gmx.net>2012-03-06 15:39:29 +0100
commit7931909e28df715e4d54d082dff5a8f46b669407 (patch)
tree2b64e005302bb05c99ca157e5dccca0a2b94d5ac
parent129c139ed7e64591a27a27ea11d66a5f02fd5f06 (diff)
downloadvdr-plugin-softhddevice-7931909e28df715e4d54d082dff5a8f46b669407.tar.gz
vdr-plugin-softhddevice-7931909e28df715e4d54d082dff5a8f46b669407.tar.bz2
Workaround should be for abs.
-rw-r--r--codec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/codec.c b/codec.c
index 73776ff..8585862 100644
--- a/codec.c
+++ b/codec.c
@@ -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);