[FFmpeg-cvslog] avcodec/lossless_videodsp: add_hfyu_left_prediction_int16_c: fix harmless integer overflow
Michael Niedermayer
git at videolan.org
Sat Feb 15 16:56:50 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 15 16:51:33 2014 +0100| [ed1a6878564a97e67e5fe3a25bc099208cfed024] | committer: Michael Niedermayer
avcodec/lossless_videodsp: add_hfyu_left_prediction_int16_c: fix harmless integer overflow
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed1a6878564a97e67e5fe3a25bc099208cfed024
---
libavcodec/lossless_videodsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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++){
More information about the ffmpeg-cvslog
mailing list