apng: move shared header from avformat to avcodec.