Change codec_id type to enum CodecID, fix warning.