mirror of https://git.ffmpeg.org/ffmpeg.git
fftools/ffmpeg_filter: track input/output index in {Input,Output}FilterPriv
Will be useful in following commits.
This commit is contained in:
parent
c6483f1c2a
commit
1d536e0283
|
@ -74,6 +74,8 @@ static const FilterGraphPriv *cfgp_from_cfg(const FilterGraph *fg)
|
|||
typedef struct InputFilterPriv {
|
||||
InputFilter ifilter;
|
||||
|
||||
int index;
|
||||
|
||||
AVFilterContext *filter;
|
||||
|
||||
InputStream *ist;
|
||||
|
@ -162,6 +164,8 @@ typedef struct FPSConvContext {
|
|||
typedef struct OutputFilterPriv {
|
||||
OutputFilter ofilter;
|
||||
|
||||
int index;
|
||||
|
||||
AVFilterContext *filter;
|
||||
|
||||
/* desired output stream properties */
|
||||
|
@ -594,6 +598,7 @@ static OutputFilter *ofilter_alloc(FilterGraph *fg)
|
|||
ofilter = &ofp->ofilter;
|
||||
ofilter->graph = fg;
|
||||
ofp->format = -1;
|
||||
ofp->index = fg->nb_outputs - 1;
|
||||
ofilter->last_pts = AV_NOPTS_VALUE;
|
||||
|
||||
return ofilter;
|
||||
|
@ -787,6 +792,7 @@ static InputFilter *ifilter_alloc(FilterGraph *fg)
|
|||
if (!ifp->frame)
|
||||
return NULL;
|
||||
|
||||
ifp->index = fg->nb_inputs - 1;
|
||||
ifp->format = -1;
|
||||
ifp->fallback.format = -1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue