avcodec/pngdec: create a function to decode IHDR chunk.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/pngdec: create a function to decode pHYs chunk.

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