From fdfc51766d28087c44307ddb5a4b087d47dbe8ef Mon Sep 17 00:00:00 2001 From: Jun Zhao Date: Tue, 31 Oct 2017 16:09:45 +0800 Subject: [PATCH] examples/transcoding: suppress build warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit suppress the "warning: assignment discards ‘const’ qualifier from pointer target type" build warning. Signed-off-by: Jun Zhao Reviewed-by: Steven Liu Signed-off-by: Michael Niedermayer --- doc/examples/transcoding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/transcoding.c b/doc/examples/transcoding.c index e1b3311081..e32ab20245 100644 --- a/doc/examples/transcoding.c +++ b/doc/examples/transcoding.c @@ -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();