1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Baptiste Coudurier 2009-06-11 08:16:08 +00:00
parent 89bc05d1ea
commit 844d17fb14

View 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;
}