From 57986c501e8c97d4bd2e1b7ce9e9037c4ae06245 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 7 Mar 2012 00:47:11 +0100 Subject: [PATCH] lavc/utils: fix const correctness of AVClass cast Signed-off-by: Michael Niedermayer --- libavcodec/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }