diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-04-21 08:59:38 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2008-04-21 08:59:38 +0000 |
commit | 66824f990bfc821a1daee58d7abfb556cc93fff7 (patch) | |
tree | d1636fd5b174f86b5b0cd06ba6f28db0341ded62 | |
parent | b1d31e2f1236f4f7791bb2b969c214b57ac2a1c0 (diff) | |
download | ffmpeg-66824f990bfc821a1daee58d7abfb556cc93fff7.tar.gz |
Make some ffmpeg opts use parse-number-or-die.
Patch by Stefano Sabatini stefano sabatini-lala posteit
Originally committed as revision 12919 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffmpeg.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2226,12 +2226,12 @@ static void opt_video_rc_override_string(const char *arg) static void opt_me_threshold(const char *arg) { - me_threshold = atoi(arg); + me_threshold = parse_number_or_die("me_threshold", arg, OPT_INT64, INT_MIN, INT_MAX); } static void opt_verbose(const char *arg) { - verbose = atoi(arg); + verbose = parse_number_or_die("v", arg, OPT_INT64, AV_LOG_QUIET, AV_LOG_DEBUG); av_log_set_level(verbose); } @@ -2510,12 +2510,12 @@ static void opt_thread_count(const char *arg) static void opt_audio_rate(const char *arg) { - audio_sample_rate = atoi(arg); + audio_sample_rate = parse_number_or_die("ar", arg, OPT_INT64, 0, INT_MAX); } static void opt_audio_channels(const char *arg) { - audio_channels = atoi(arg); + audio_channels = parse_number_or_die("ac", arg, OPT_INT64, 0, INT_MAX); } static void opt_video_channel(const char *arg) |