diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-08-18 16:21:00 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-17 15:48:20 +0200 |
commit | 9f64c8219ada4bd48927abaa5eebd7ff9ba95f61 (patch) | |
tree | cd43a237fdf1e453a888c9a8bee0d855637fa388 | |
parent | 58dee6e62d593747b5dbe8ce6c2ff1833151b9b0 (diff) | |
download | ffmpeg-9f64c8219ada4bd48927abaa5eebd7ff9ba95f61.tar.gz |
lavc: add const to private codec class initialization.
Silences a warning about discarding const.
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index b5b0466650..23ac50038f 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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); } } |