aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/options.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-11-19 01:09:48 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-19 01:10:58 -0500
commitfa9aeb82e25fe7eaf38086798ca79825e423da4e (patch)
treedfaad4535cab11991426e326a2e71b8b6ef737f4 /libavcodec/options.c
parent86d3730360bf085f5ba35951350b3c8e8e804350 (diff)
downloadffmpeg-fa9aeb82e25fe7eaf38086798ca79825e423da4e.tar.gz
avcodec: fix some const warnings
libavcodec/options.c:583: warning: assignment discards qualifiers from pointer target type libavcodec/options.c:589: warning: initialization discards qualifiers from pointer target type
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r--libavcodec/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index d1cc183050..76ca66c902 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -580,13 +580,13 @@ int avcodec_get_context_defaults3(AVCodecContext *s, AVCodec *codec){
}
}
if(codec->priv_class){
- *(AVClass**)s->priv_data= codec->priv_class;
+ *(const AVClass**)s->priv_data = codec->priv_class;
av_opt_set_defaults(s->priv_data);
}
}
if (codec && codec->defaults) {
int ret;
- AVCodecDefault *d = codec->defaults;
+ const AVCodecDefault *d = codec->defaults;
while (d->key) {
ret = av_set_string3(s, d->key, d->value, 0, NULL);
av_assert0(ret >= 0);