diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-08-02 13:26:43 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-08-05 09:40:06 +0200 |
commit | b35ae266ccc36f1afb4ed1bd282c4b7c9a0375d4 (patch) | |
tree | 7b34d1a15131a6f64126ebbde92a458420e9d0cd /libavcodec/utils.c | |
parent | 2ece81b4c0d3abd2181722cc8c4db4324401331d (diff) | |
download | ffmpeg-b35ae266ccc36f1afb4ed1bd282c4b7c9a0375d4.tar.gz |
avcodec/utils: Move ff_int_from_list_or_default() to its only user
Namely proresenc_anatoliy.c.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index da652d4db1..bd4131db62 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1142,22 +1142,3 @@ int64_t ff_guess_coded_bitrate(AVCodecContext *avctx) return bitrate; } - -int ff_int_from_list_or_default(void *ctx, const char * val_name, int val, - const int * array_valid_values, int default_value) -{ - int i = 0, ref_val; - - while (1) { - ref_val = array_valid_values[i]; - if (ref_val == INT_MAX) - break; - if (val == ref_val) - return val; - i++; - } - /* val is not a valid value */ - av_log(ctx, AV_LOG_DEBUG, - "%s %d are not supported. Set to default value : %d\n", val_name, val, default_value); - return default_value; -} |