Commit 844d17fb authored by Baptiste Coudurier's avatar Baptiste Coudurier

Add const in cast. Removes warning:

libavcodec/resample.c:215: warning: assignment discards qualifiers from pointer target type

Originally committed as revision 19151 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 89bc05d1
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment