Fixed compatibility issues with libavcodec > 53.25.0

Post libavcodec 53.25.0 the enum CodecID was changed to AVCodecID causing compilation errors saying CodecID was not previously declared.