examples/filtering_video: suppress the build warning.
authorJun Zhao <jun.zhao@intel.com>
Tue, 31 Oct 2017 08:11:06 +0000 (16:11 +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_video.c

index fedb2e1..9b607ba 100644 (file)
@@ -92,8 +92,8 @@ static int init_filters(const char *filters_descr)
 {
     char args[512];
     int ret = 0;
-    AVFilter *buffersrc  = avfilter_get_by_name("buffer");
-    AVFilter *buffersink = avfilter_get_by_name("buffersink");
+    const AVFilter *buffersrc  = avfilter_get_by_name("buffer");
+    const AVFilter *buffersink = avfilter_get_by_name("buffersink");
     AVFilterInOut *outputs = avfilter_inout_alloc();
     AVFilterInOut *inputs  = avfilter_inout_alloc();
     AVRational time_base = fmt_ctx->streams[video_stream_index]->time_base;