Mercurial > libavcodec.hg
comparison resample.c @ 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 | 7dd2a45249a9 |
comparison
equal
deleted
inserted
replaced
9834:ce317c75222d | 9835:ff9ae6249d18 |
---|---|
210 | 210 |
211 #define TAPS 16 | 211 #define TAPS 16 |
212 s->resample_context= av_resample_init(output_rate, input_rate, | 212 s->resample_context= av_resample_init(output_rate, input_rate, |
213 filter_length, log2_phase_count, linear, cutoff); | 213 filter_length, log2_phase_count, linear, cutoff); |
214 | 214 |
215 *(AVClass**)s->resample_context = &audioresample_context_class; | 215 *(const AVClass**)s->resample_context = &audioresample_context_class; |
216 | 216 |
217 return s; | 217 return s; |
218 } | 218 } |
219 | 219 |
220 #if LIBAVCODEC_VERSION_MAJOR < 53 | 220 #if LIBAVCODEC_VERSION_MAJOR < 53 |