Mercurial > libavformat.hg
changeset 6183:91c7c6929874 libavformat
Add proper const declaration to a cast, fixes a warning
Patch by Eli Friedman, eli dot friedman at gmail
author | mstorsjo |
---|---|
date | Sun, 27 Jun 2010 17:33:52 +0000 |
parents | 4fc5e0e4e1cd |
children | eb590b2816f8 |
files | avio.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/avio.c Sun Jun 27 14:16:46 2010 +0000 +++ b/avio.c Sun Jun 27 17:33:52 2010 +0000 @@ -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); } }