Browse Source

avformat/dtsdec: fix signedness in reference pcm highpass in dts_probe()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Michael Niedermayer 11 years ago
parent
commit
e6fabd6e9b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/dtsdec.c

+ 1
- 1
libavformat/dtsdec.c View File

@@ -59,7 +59,7 @@ static int dts_probe(AVProbeData *p)
markers[3]++;

if (buf - p->buf >= 4)
diff += FFABS(AV_RL16(buf) - AV_RL16(buf-4));
diff += FFABS(((int16_t)AV_RL16(buf)) - (int16_t)AV_RL16(buf-4));
}
sum = markers[0] + markers[1] + markers[2] + markers[3];
max = 0;


Loading…
Cancel
Save