aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_filter.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-24 12:39:47 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-31 16:20:19 +0200
commit2674532eeed14f0b82fa027da7b2b3389bc8faaf (patch)
tree56d5619e6efb1c7138f93bf0fd615cb5e4917305 /fftools/ffmpeg_filter.c
parent3bfc2c589ad1470995a0d470466735b841306f7d (diff)
downloadffmpeg-2674532eeed14f0b82fa027da7b2b3389bc8faaf.tar.gz
fftools/ffmpeg_filter: constify the argument of filtergraph_is_simple()
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r--fftools/ffmpeg_filter.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 42bb4c7348..2cf3c891ce 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -54,6 +54,11 @@ static FilterGraphPriv *fgp_from_fg(FilterGraph *fg)
return (FilterGraphPriv*)fg;
}
+static const FilterGraphPriv *cfgp_from_cfg(const FilterGraph *fg)
+{
+ return (const FilterGraphPriv*)fg;
+}
+
typedef struct InputFilterPriv {
InputFilter ifilter;
@@ -1674,9 +1679,9 @@ static int ifilter_parameters_from_frame(InputFilter *ifilter, const AVFrame *fr
return 0;
}
-int filtergraph_is_simple(FilterGraph *fg)
+int filtergraph_is_simple(const FilterGraph *fg)
{
- FilterGraphPriv *fgp = fgp_from_fg(fg);
+ const FilterGraphPriv *fgp = cfgp_from_cfg(fg);
return fgp->is_simple;
}