Commit e6fabd6e authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent dd551dc7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment