mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02: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]++;
|
markers[3]++;
|
||||||
|
|
||||||
if (buf - p->buf >= 4)
|
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];
|
sum = markers[0] + markers[1] + markers[2] + markers[3];
|
||||||
max = 0;
|
max = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user