[FFmpeg-cvslog] avformat/dtsdec: fix signedness in reference pcm highpass in dts_probe()
Michael Niedermayer
git at videolan.org
Sat Aug 2 17:41:14 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 2 17:23:03 2014 +0200| [e6fabd6e9bfdb6d010da7e61d32ad1e558703654] | committer: Michael Niedermayer
avformat/dtsdec: fix signedness in reference pcm highpass in dts_probe()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e6fabd6e9bfdb6d010da7e61d32ad1e558703654
---
libavformat/dtsdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/dtsdec.c b/libavformat/dtsdec.c
index 227a02b..330c428 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;
More information about the ffmpeg-cvslog
mailing list