diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-06-27 17:33:52 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-27 17:33:52 +0000 |
commit | 805488f0e2a30e1ac5cb73671aa6b2ac348fcc02 (patch) | |
tree | 70c2807864acd1b187dc48eb4241ea0b83ef71f2 | |
parent | b3858964d6ddc61c89588be64ef6b2290debd136 (diff) | |
download | ffmpeg-805488f0e2a30e1ac5cb73671aa6b2ac348fcc02.tar.gz |
Add proper const declaration to a cast, fixes a warning
Patch by Eli Friedman, eli dot friedman at gmail
Originally committed as revision 23827 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index 6ea0e9eced..0ad4f969e1 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -121,7 +121,7 @@ static int url_alloc_for_protocol (URLContext **puc, struct URLProtocol *up, 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); } } |