examples/filtering_audio: suppress the build warning.
authorJun Zhao <jun.zhao@intel.com>
Tue, 31 Oct 2017 08:12:36 +0000 (16:12 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 1 Nov 2017 01:10:09 +0000 (02:10 +0100)
suppress the "warning: assignment discards â€˜const’ qualifier from
pointer target type" build warning.

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
doc/examples/filtering_audio.c

index d58b9b7..18d6ca2 100644 (file)
@@ -89,8 +89,8 @@ static int init_filters(const char *filters_descr)
 {
     char args[512];
     int ret = 0;
-    AVFilter *abuffersrc  = avfilter_get_by_name("abuffer");
-    AVFilter *abuffersink = avfilter_get_by_name("abuffersink");
+    const AVFilter *abuffersrc  = avfilter_get_by_name("abuffer");
+    const AVFilter *abuffersink = avfilter_get_by_name("abuffersink");
     AVFilterInOut *outputs = avfilter_inout_alloc();
     AVFilterInOut *inputs  = avfilter_inout_alloc();
     static const enum AVSampleFormat out_sample_fmts[] = { AV_SAMPLE_FMT_S16, -1 };