diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-15 16:51:33 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-15 16:51:33 +0100 |
commit | ed1a6878564a97e67e5fe3a25bc099208cfed024 (patch) | |
tree | 8beee8562bf8010f1a623cb5a40f911fea314785 | |
parent | 042ab7c49ee374306f4aa31533a1d8975ee6ddc3 (diff) | |
download | ffmpeg-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.c | 2 |
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++){ |