summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-15 16:51:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-15 16:51:33 +0100
commited1a6878564a97e67e5fe3a25bc099208cfed024 (patch)
tree8beee8562bf8010f1a623cb5a40f911fea314785
parent042ab7c49ee374306f4aa31533a1d8975ee6ddc3 (diff)
downloadffmpeg-streaming-ed1a6878564a97e67e5fe3a25bc099208cfed024.zip
ffmpeg-streaming-ed1a6878564a97e67e5fe3a25bc099208cfed024.tar.gz
avcodec/lossless_videodsp: add_hfyu_left_prediction_int16_c: fix harmless integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/lossless_videodsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lossless_videodsp.c b/libavcodec/lossless_videodsp.c
index aa1e7df..ca55e6e 100644
--- a/libavcodec/lossless_videodsp.c
+++ b/libavcodec/lossless_videodsp.c
@@ -95,7 +95,7 @@ static void sub_hfyu_median_prediction_int16_c(uint16_t *dst, const uint16_t *sr
*left_top = lt;
}
-static int add_hfyu_left_prediction_int16_c(uint16_t *dst, const uint16_t *src, unsigned mask, int w, int acc){
+static int add_hfyu_left_prediction_int16_c(uint16_t *dst, const uint16_t *src, unsigned mask, int w, unsigned acc){
int i;
for(i=0; i<w-1; i++){
OpenPOWER on IntegriCloud