From 55e83b8c0473b194381b907e946932d160dedc3a Mon Sep 17 00:00:00 2001 From: xufuji456 <839789740@qq.com> Date: Sun, 18 Jul 2021 18:50:45 +0800 Subject: [PATCH] change to const type --- app/src/main/cpp/video_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/video_filter.c b/app/src/main/cpp/video_filter.c index e84b0f3..f05dd70 100644 --- a/app/src/main/cpp/video_filter.c +++ b/app/src/main/cpp/video_filter.c @@ -83,8 +83,8 @@ jboolean playAudio = JNI_TRUE; 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 = pFormatCtx->streams[video_stream_index]->time_base;