Commit 24ca2ffa authored by Benoit Fouet's avatar Benoit Fouet Committed by Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c25b6ae8
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment