Commit 57986c50 authored by Michael Niedermayer's avatar Michael Niedermayer

lavc/utils: fix const correctness of AVClass cast

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 11344792
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment