lavc/utils: fix const correctness of AVClass cast
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
11344792e8
commit
57986c501e
@ -762,7 +762,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
if (codec->priv_class) {
|
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);
|
av_opt_set_defaults(avctx->priv_data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user