diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-02 17:23:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-02 17:24:42 +0200 |
commit | e6fabd6e9bfdb6d010da7e61d32ad1e558703654 (patch) | |
tree | c9adf583e91a19f763bdced0b3c9ae71342597ae | |
parent | dd551dc7ff510ef74d49ab920e1f4f221292d4db (diff) | |
download | ffmpeg-e6fabd6e9bfdb6d010da7e61d32ad1e558703654.tar.gz |
avformat/dtsdec: fix signedness in reference pcm highpass in dts_probe()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/dtsdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |