diff mbox

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

Message ID 3280b939-7631-7de0-3e7d-60e1f6907192@gmail.com
State Accepted
Commit 5c51d0edd4f37d675cbe1a010baa38c6968b8f19
Headers show

Commit Message

Jun Zhao Oct. 31, 2017, 8:22 a.m. UTC
From 6e8dbeb70f03312deee47a3cf0b5b47a7241ffb5 Mon Sep 17 00:00:00 2001
From: Jun Zhao <jun.zhao@intel.com>
Date: Tue, 31 Oct 2017 16:12:36 +0800
Subject: [PATCH 3/3] examples/filtering_audio: 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_audio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Steven Liu Oct. 31, 2017, 8:29 a.m. UTC | #1
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
>

patchset LGTM
Michael Niedermayer Nov. 1, 2017, 1:08 a.m. UTC | #2
On Tue, Oct 31, 2017 at 04:29:02PM +0800, Steven Liu wrote:
> 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
> >
> 
> patchset LGTM

will apply

thanks

[...]
diff mbox

Patch

diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index d58b9b75ea..18d6ca275c 100644
--- a/doc/examples/filtering_audio.c
+++ b/doc/examples/filtering_audio.c
@@ -89,8 +89,8 @@  static int init_filters(const char *filters_descr)
 {
     char args[512];
     int ret = 0;
-    AVFilter *abuffersrc  = avfilter_get_by_name("abuffer");
-    AVFilter *abuffersink = avfilter_get_by_name("abuffersink");
+    const AVFilter *abuffersrc  = avfilter_get_by_name("abuffer");
+    const AVFilter *abuffersink = avfilter_get_by_name("abuffersink");
     AVFilterInOut *outputs = avfilter_inout_alloc();
     AVFilterInOut *inputs  = avfilter_inout_alloc();
     static const enum AVSampleFormat out_sample_fmts[] = { AV_SAMPLE_FMT_S16, -1 };