[FFmpeg-cvslog] lavc: add const to private codec class initialization.
Anton Khirnov
git at videolan.org
Tue Sep 18 14:52:49 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Aug 18 16:21:00 2012 +0200| [9f64c8219ada4bd48927abaa5eebd7ff9ba95f61] | committer: Anton Khirnov
lavc: add const to private codec class initialization.
Silences a warning about discarding const.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9f64c8219ada4bd48927abaa5eebd7ff9ba95f61
---
libavcodec/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index b5b0466..23ac500 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);
}
}
More information about the ffmpeg-cvslog
mailing list