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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Benoit Fouet 2014-11-14 10:17:37 +01:00 committed by Michael Niedermayer
parent c25b6ae8a2
commit 24ca2ffad8
1 changed files with 2 additions and 4 deletions

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