mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavc: add const to private codec class initialization.
Silences a warning about discarding const.
This commit is contained in:
parent
58dee6e62d
commit
9f64c8219a
1 changed files with 1 additions and 1 deletions
|
|
@ -681,7 +681,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
|
||||||
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…
Add table
Add a link
Reference in a new issue