mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avformat/dtsdec: fix signedness in reference pcm highpass in dts_probe()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
dd551dc7ff
commit
e6fabd6e9b
@ -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…
Reference in New Issue
Block a user