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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/pngdec: create a function to handle small (<=4) bits per pixel values.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>