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

index e1b3311..e32ab20 100644 (file)
@@ -227,8 +227,8 @@ static int init_filter(FilteringContext* fctx, AVCodecContext *dec_ctx,
 {
     char args[512];
     int ret = 0;
-    AVFilter *buffersrc = NULL;
-    AVFilter *buffersink = NULL;
+    const AVFilter *buffersrc = NULL;
+    const AVFilter *buffersink = NULL;
     AVFilterContext *buffersrc_ctx = NULL;
     AVFilterContext *buffersink_ctx = NULL;
     AVFilterInOut *outputs = avfilter_inout_alloc();