diff mbox

[FFmpeg-devel,2/3] examples/filtering_video: suppress the build warning.

Message ID 10344932-1b11-aec3-be83-f912e4df761d@gmail.com
State Accepted
Commit cb6e20f8de12cf6401ae2dd5f9eea9587ddfe1eb
Headers show

Commit Message

Jun Zhao Oct. 31, 2017, 8:22 a.m. UTC
From e192b42ab0fdc4b8faad50ff7bb01c6028945f19 Mon Sep 17 00:00:00 2001
From: Jun Zhao <jun.zhao@intel.com>
Date: Tue, 31 Oct 2017 16:11:06 +0800
Subject: [PATCH 2/3] examples/filtering_video: suppress the 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 <jun.zhao@intel.com>
---
 doc/examples/filtering_video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/doc/examples/filtering_video.c b/doc/examples/filtering_video.c
index fedb2e1c99..9b607ba016 100644
--- a/doc/examples/filtering_video.c
+++ b/doc/examples/filtering_video.c
@@ -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;