1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavc: add const to private codec class initialization.

Silences a warning about discarding const.
This commit is contained in:
Anton Khirnov 2012-08-18 16:21:00 +02:00
parent 58dee6e62d
commit 9f64c8219a

View File

@ -681,7 +681,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
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);
}
}