Add const in cast. Removes warning:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 11 Jun 2009 08:16:08 +0000 (08:16 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 11 Jun 2009 08:16:08 +0000 (08:16 +0000)
libavcodec/resample.c:215: warning: assignment discards qualifiers from pointer target type

Originally committed as revision 19151 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/resample.c

index fea8e75..e1d29f7 100644 (file)
@@ -212,7 +212,7 @@ ReSampleContext *av_audio_resample_init(int output_channels, int input_channels,
     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;
 }