avcodec: use codecid with AV_ prefix

- use enum AVCodecID instead of enum CodecID
- use AV_CODEC_ID_xxx instead of CODEC_ID_xxx
- extend a backwards compatible macro-wrapper in
  avcodec.h

avcodec should still compile on old versions of FFmpeg.
please let us know if it does not :)