aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-03-15 21:01:05 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-03-15 21:01:05 +0100
commitbf2ed32e63b2f4d5ae0e4e3c1b8401bb7c03ec12 (patch)
treeefd305418bee7cd2a3687d4b9918cc551ac611f5
parent72497321df4ebfaf61ca46a645ee79c446b5fe2c (diff)
downloadODR-AudioEnc-bf2ed32e63b2f4d5ae0e4e3c1b8401bb7c03ec12.tar.gz
ODR-AudioEnc-bf2ed32e63b2f4d5ae0e4e3c1b8401bb7c03ec12.tar.bz2
ODR-AudioEnc-bf2ed32e63b2f4d5ae0e4e3c1b8401bb7c03ec12.zip
Replace atoi by std::stoi
-rw-r--r--src/odr-audioenc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp
index 0f015a2..4da3419 100644
--- a/src/odr-audioenc.cpp
+++ b/src/odr-audioenc.cpp
@@ -520,7 +520,7 @@ int main(int argc, char *argv[])
dab_channel_mode = optarg[0];
break;
case 5: // DAB psy model
- dab_psy_model = atoi(optarg);
+ dab_psy_model = std::stoi(optarg);
break;
case 'a':
selected_encoder = encoder_selection_t::toolame_dab;
@@ -529,13 +529,13 @@ int main(int argc, char *argv[])
afterburner = false;
break;
case 'b':
- bitrate = atoi(optarg);
+ bitrate = std::stoi(optarg);
break;
case 'B':
bandwidth = std::stoi(optarg);
break;
case 'c':
- channels = atoi(optarg);
+ channels = std::stoi(optarg);
break;
case 'd':
alsa_device = optarg;
@@ -570,16 +570,16 @@ int main(int argc, char *argv[])
output_uris.push_back(optarg);
break;
case 'p':
- padlen = atoi(optarg);
+ padlen = std::stoi(optarg);
break;
case 'P':
pad_fifo = optarg;
break;
case 'r':
- sample_rate = atoi(optarg);
+ sample_rate = std::stoi(optarg);
break;
case 's':
- silence_timeout = atoi(optarg);
+ silence_timeout = std::stoi(optarg);
if (silence_timeout > 0 && silence_timeout < 3600*24*30) {
die_on_silence = true;
}