apng: move shared header from avformat to avcodec.

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