mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
fftools/ffmpeg_filter: use a dedicated variable for marking simple filtergraphs
Do not use an unrelated graph property, which will change in future commits.
This commit is contained in:
parent
b56db2956b
commit
badf959ed6
@ -41,6 +41,8 @@
|
|||||||
typedef struct FilterGraphPriv {
|
typedef struct FilterGraphPriv {
|
||||||
FilterGraph fg;
|
FilterGraph fg;
|
||||||
|
|
||||||
|
int is_simple;
|
||||||
|
|
||||||
const char *graph_desc;
|
const char *graph_desc;
|
||||||
|
|
||||||
// frame for temporarily holding output from the filtergraph
|
// frame for temporarily holding output from the filtergraph
|
||||||
@ -353,6 +355,7 @@ FilterGraph *fg_create(char *graph_desc)
|
|||||||
int init_simple_filtergraph(InputStream *ist, OutputStream *ost)
|
int init_simple_filtergraph(InputStream *ist, OutputStream *ost)
|
||||||
{
|
{
|
||||||
FilterGraph *fg;
|
FilterGraph *fg;
|
||||||
|
FilterGraphPriv *fgp;
|
||||||
OutputFilter *ofilter;
|
OutputFilter *ofilter;
|
||||||
InputFilter *ifilter;
|
InputFilter *ifilter;
|
||||||
int ret;
|
int ret;
|
||||||
@ -360,6 +363,9 @@ int init_simple_filtergraph(InputStream *ist, OutputStream *ost)
|
|||||||
fg = fg_create(NULL);
|
fg = fg_create(NULL);
|
||||||
if (!fg)
|
if (!fg)
|
||||||
report_and_exit(AVERROR(ENOMEM));
|
report_and_exit(AVERROR(ENOMEM));
|
||||||
|
fgp = fgp_from_fg(fg);
|
||||||
|
|
||||||
|
fgp->is_simple = 1;
|
||||||
|
|
||||||
ofilter = ofilter_alloc(fg);
|
ofilter = ofilter_alloc(fg);
|
||||||
ofilter->ost = ost;
|
ofilter->ost = ost;
|
||||||
@ -1474,7 +1480,7 @@ int ifilter_has_all_input_formats(FilterGraph *fg)
|
|||||||
int filtergraph_is_simple(FilterGraph *fg)
|
int filtergraph_is_simple(FilterGraph *fg)
|
||||||
{
|
{
|
||||||
FilterGraphPriv *fgp = fgp_from_fg(fg);
|
FilterGraphPriv *fgp = fgp_from_fg(fg);
|
||||||
return !fgp->graph_desc;
|
return fgp->is_simple;
|
||||||
}
|
}
|
||||||
|
|
||||||
int reap_filters(int flush)
|
int reap_filters(int flush)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user