Browse Source

avcodec/lossless_videodsp: add_hfyu_left_prediction_int16_c: fix harmless integer overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
ed1a687856
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/lossless_videodsp.c

+ 1
- 1
libavcodec/lossless_videodsp.c View File

@@ -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++){


Loading…
Cancel
Save