Commit fedc8c52 authored by bcoudurier's avatar bcoudurier

Add const in cast. Removes warning:

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



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19151 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ff42ed08
...@@ -212,7 +212,7 @@ ReSampleContext *av_audio_resample_init(int output_channels, int input_channels, ...@@ -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;
} }
......
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