aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/transcoding.c
diff options
context:
space:
mode:
authorJun Zhao <jun.zhao@intel.com>2017-10-31 16:09:45 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2017-11-01 02:10:09 +0100
commitfdfc51766d28087c44307ddb5a4b087d47dbe8ef (patch)
tree314e8d2bd2a8733eada0e27f0e7b68089ac9f594 /doc/examples/transcoding.c
parenta211626978823c28d4b8e914019766833b77155b (diff)
downloadffmpeg-fdfc51766d28087c44307ddb5a4b087d47dbe8ef.tar.gz
examples/transcoding: suppress 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>
Diffstat (limited to 'doc/examples/transcoding.c')
-rw-r--r--doc/examples/transcoding.c4
1 files 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();