[FFmpeg-cvslog] r19151 - trunk/libavcodec/resample.c

bcoudurier subversion
Thu Jun 11 10:16:08 CEST 2009


Author: bcoudurier
Date: Thu Jun 11 10:16:08 2009
New Revision: 19151

Log:
Add const in cast. Removes warning:
libavcodec/resample.c:215: warning: assignment discards qualifiers from pointer target type

Modified:
   trunk/libavcodec/resample.c

Modified: trunk/libavcodec/resample.c
==============================================================================
--- trunk/libavcodec/resample.c	Thu Jun 11 10:14:50 2009	(r19150)
+++ trunk/libavcodec/resample.c	Thu Jun 11 10:16:08 2009	(r19151)
@@ -212,7 +212,7 @@ ReSampleContext *av_audio_resample_init(
     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;
 }



More information about the ffmpeg-cvslog mailing list