aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-07 00:47:11 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-07 00:47:11 +0100
commit57986c501e8c97d4bd2e1b7ce9e9037c4ae06245 (patch)
treef4a34d81a91fd7f636b38ccac5d046bf87400ffc /libavcodec/utils.c
parent11344792e843829cfe6913da018d24636d5a182e (diff)
downloadffmpeg-57986c501e8c97d4bd2e1b7ce9e9037c4ae06245.tar.gz
lavc/utils: fix const correctness of AVClass cast
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 541a4b6712..8619285b7c 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -762,7 +762,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
goto end;
}
if (codec->priv_class) {
- *(AVClass**)avctx->priv_data= codec->priv_class;
+ *(const AVClass**)avctx->priv_data= codec->priv_class;
av_opt_set_defaults(avctx->priv_data);
}
}