Renamed deprecated CODEC_ID to AV_CODEC_ID to fix compilation for libav 10

The library is now used in Ubuntu Utopic 14.10 and the constants have been deprecated for a long time:
https://wiki.libav.org/Migration/10