Browse Source

avcodec/pngdec: use else if instead of if for small bpp handling.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Benoit Fouet Michael Niedermayer 11 years ago
parent
commit
24ca2ffad8
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      libavcodec/pngdec.c

+ 2
- 4
libavcodec/pngdec.c View File

@@ -840,8 +840,7 @@ exit_loop:
}
pd += s->image_linesize;
}
}
if (s->bits_per_pixel == 2){
} else if (s->bits_per_pixel == 2) {
int i, j;
uint8_t *pd = p->data[0];
for (j = 0; j < s->height; j++) {
@@ -869,8 +868,7 @@ exit_loop:
}
pd += s->image_linesize;
}
}
if (s->bits_per_pixel == 4){
} else if (s->bits_per_pixel == 4) {
int i, j;
uint8_t *pd = p->data[0];
for (j = 0; j < s->height; j++) {


Loading…
Cancel
Save