aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Zhao2017-10-31 16:12:36 +0800
committerMichael Niedermayer2017-11-01 02:10:09 +0100
commit5c51d0edd4f37d675cbe1a010baa38c6968b8f19 (patch)
tree1c3d419e89c081bd4daf4f7acb191c986403cae6
parentcb6e20f8de12cf6401ae2dd5f9eea9587ddfe1eb (diff)
examples/filtering_audio: suppress the build warning.
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>
-rw-r--r--doc/examples/filtering_audio.c4
1 files changed, 2 insertions, 2 deletions
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 };