mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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:
parent
c25b6ae8a2
commit
24ca2ffad8
@ -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…
Reference in New Issue
Block a user