Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-08 07:27:01 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-09-08 07:34:17 +0400
commit0962ad0e2f86369cfac60f2300ced1702a95630a (patch)
tree4891067271f9f00504e680de08c5d6d8aadc9fa2 /libavutil
parentbd358e128f47c14c7bc9dfceb8dedb3e5697f017 (diff)
avopt: Fix searching for constants
Fixes Ticket350 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 2d4f873847..d749259c08 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -575,7 +575,7 @@ const AVOption *av_opt_find(void *obj, const char *name, const char *unit,
while (o = av_next_option(obj, o)) {
if (!strcmp(o->name, name) && (o->flags & opt_flags) == opt_flags &&
((!unit && o->type != FF_OPT_TYPE_CONST) ||
- (unit && o->unit && !strcmp(o->unit, unit))))
+ (unit && o->type == FF_OPT_TYPE_CONST && o->unit && !strcmp(o->unit, unit))))
return o;
}
return NULL;