Maintain compatibility for older versions of ffmpeg/libav which don't have the AV_ prefix on CODEC_ID_*