lavc/utils: fix const correctness of AVClass cast

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/3/merge
Michael Niedermayer 13 years ago
parent 11344792e8
commit 57986c501e
  1. 2
      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);
}
}

Loading…
Cancel
Save