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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-08-02 17:23:03 +02:00
parent dd551dc7ff
commit e6fabd6e9b
1 changed files with 1 additions and 1 deletions

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;