diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-27 00:11:01 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2016-03-24 10:34:09 +0200 |
commit | 8833f1508b7b6afc3172a8017934a7a54428c686 (patch) | |
tree | bb2d0be48aedc52adacacbd3a9b8fb4065342381 /libavutil/opt.c | |
parent | 933dec0e29ec4d2cb83474279a6c52d62fdb7310 (diff) | |
download | ffmpeg-8833f1508b7b6afc3172a8017934a7a54428c686.tar.gz |
opt: Add const to av_opt_next
Also add const to pointers in static functions within opt.c where
possible/necessary.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index f2e3e6d333..c5a1933aa3 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -34,7 +34,7 @@ #include "log.h" #include "mathematics.h" -const AVOption *av_opt_next(void *obj, const AVOption *last) +const AVOption *av_opt_next(const void *obj, const AVOption *last) { AVClass *class = *(AVClass**)obj; if (!last && class->option && class->option[0].name) @@ -44,7 +44,7 @@ const AVOption *av_opt_next(void *obj, const AVOption *last) return NULL; } -static int read_number(const AVOption *o, void *dst, double *num, int *den, int64_t *intnum) +static int read_number(const AVOption *o, const void *dst, double *num, int *den, int64_t *intnum) { switch (o->type) { case AV_OPT_TYPE_FLAGS: *intnum = *(unsigned int*)dst;return 0; |