fftools/ffmpeg_filter: constify the argument of filtergraph_is_simple()

pull/389/head
Anton Khirnov 2 years ago
parent 3bfc2c589a
commit 2674532eee
  1. 2
      fftools/ffmpeg.h
  2. 9
      fftools/ffmpeg_filter.c

@ -731,7 +731,7 @@ int parse_and_set_vsync(const char *arg, int *vsync_var, int file_idx, int st_id
int configure_filtergraph(FilterGraph *fg);
void check_filter_outputs(void);
int filtergraph_is_simple(FilterGraph *fg);
int filtergraph_is_simple(const FilterGraph *fg);
int init_simple_filtergraph(InputStream *ist, OutputStream *ost,
char *graph_desc);
int init_complex_filtergraph(FilterGraph *fg);

@ -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;
}

Loading…
Cancel
Save