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:
parent
89bc05d1ea
commit
844d17fb14
@ -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,
|
s->resample_context= av_resample_init(output_rate, input_rate,
|
||||||
filter_length, log2_phase_count, linear, cutoff);
|
filter_length, log2_phase_count, linear, cutoff);
|
||||||
|
|
||||||
*(AVClass**)s->resample_context = &audioresample_context_class;
|
*(const AVClass**)s->resample_context = &audioresample_context_class;
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user