mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
fftools/ffmpeg_filter: constify the argument of filtergraph_is_simple()
This commit is contained in:
parent
3bfc2c589a
commit
2674532eee
@ -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…
Reference in New Issue
Block a user