mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
avutil/opt: Remove outdated version check
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
e2d40cd1d5
commit
386a4989df
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user