From e6fabd6e9bfdb6d010da7e61d32ad1e558703654 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 2 Aug 2014 17:23:03 +0200 Subject: avformat/dtsdec: fix signedness in reference pcm highpass in dts_probe() Signed-off-by: Michael Niedermayer --- libavformat/dtsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/dtsdec.c') diff --git a/libavformat/dtsdec.c b/libavformat/dtsdec.c index 227a02b5ea..330c428516 100644 --- a/libavformat/dtsdec.c +++ b/libavformat/dtsdec.c @@ -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; -- cgit v1.2.3