parser.h uses AVCodecContext so it needs to include avcodec.h