aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-26 11:48:33 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 05:42:48 +0200
commit386a4989df09582a4c35e86678243d24c66b9693 (patch)
treed0f641badb3cced5b7193745bf085b5f84ca0361
parente2d40cd1d52306035756687257c00bed144928e1 (diff)
downloadffmpeg-386a4989df09582a4c35e86678243d24c66b9693.tar.gz
avutil/opt: Remove outdated version check
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavutil/opt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index f05283d610..c7001dbcd3 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -1831,10 +1831,7 @@ int av_opt_query_ranges(AVOptionRanges **ranges_arg, void *obj, const char *key,
{
int ret;
const AVClass *c = *(AVClass**)obj;
- int (*callback)(AVOptionRanges **, void *obj, const char *key, int flags) = NULL;
-
- if (c->version > (52 << 16 | 11 << 8))
- callback = c->query_ranges;
+ int (*callback)(AVOptionRanges **, void *obj, const char *key, int flags) = c->query_ranges;
if (!callback)
callback = av_opt_query_ranges_default;