libavformat: add const to AVCodec pointers