Mercurial > libavcodec.hg
changeset 9835:ff9ae6249d18 libavcodec
Add const in cast. Removes warning:
libavcodec/resample.c:215: warning: assignment discards qualifiers from pointer target type
author | bcoudurier |
---|---|
date | Thu, 11 Jun 2009 08:16:08 +0000 |
parents | ce317c75222d |
children | e678b20368cd |
files | resample.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/resample.c Thu Jun 11 08:14:50 2009 +0000 +++ b/resample.c Thu Jun 11 08:16:08 2009 +0000 @@ -212,7 +212,7 @@ s->resample_context= av_resample_init(output_rate, input_rate, filter_length, log2_phase_count, linear, cutoff); - *(AVClass**)s->resample_context = &audioresample_context_class; + *(const AVClass**)s->resample_context = &audioresample_context_class; return s; }