Message ID | AM7PR03MB6660FC6C1CFE290917518B648FA69@AM7PR03MB6660.eurprd03.prod.outlook.com |
---|---|
State | Accepted |
Commit | 386a4989df09582a4c35e86678243d24c66b9693 |
Headers | show |
Series | [FFmpeg-devel,1/2] avutil/opt: Remove outdated version check | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
lgtm
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;
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavutil/opt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)