[FFmpeg-devel] [PATCH] Fix warning in libavformat/avio.c
Eli Friedman
eli.friedman
Sun Jun 27 19:26:29 CEST 2010
Patch attached; up->priv_data_class is const-qualified, and the
qualifier shouldn't be stripped.
-Eli
-------------- next part --------------
Index: libavformat/avio.c
===================================================================
--- libavformat/avio.c (revision 23826)
+++ libavformat/avio.c (working copy)
@@ -121,7 +121,7 @@
if (up->priv_data_size) {
uc->priv_data = av_mallocz(up->priv_data_size);
if (up->priv_data_class) {
- *(AVClass**)uc->priv_data = up->priv_data_class;
+ *(const AVClass**)uc->priv_data = up->priv_data_class;
av_opt_set_defaults(uc->priv_data);
}
}
More information about the ffmpeg-devel
mailing list