diff mbox

[FFmpeg-devel,1/3] examples/transcoding: suppress build warning.

Message ID CADxeRwnvfQaa3e2=2Yg_XCjzCeTXBkBXTqr9AAGTEu3go1s6AA@mail.gmail.com
State New
Headers show

Commit Message

Steven Liu Oct. 31, 2017, 8:28 a.m. UTC
2017-10-31 16:22 GMT+08:00 Jun Zhao <mypopydev@gmail.com>:
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>

From 3ee6e7f01aa2c709afa7ad23f39af919c64f85d5 Mon Sep 17 00:00:00 2001
From: Jun Zhao <jun.zhao@intel.com>
Date: Tue, 31 Oct 2017 16:09:45 +0800
Subject: [PATCH 1/3] 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 <jun.zhao@intel.com>
---
 doc/examples/transcoding.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

     AVFilterInOut *outputs = avfilter_inout_alloc();
diff mbox

Patch

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;