You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
fftools/ffmpeg_filter: move InputFilter.eof to private data
It is not used outside of ffmpeg_filter.
This commit is contained in:
@@ -289,8 +289,6 @@ typedef struct InputFilter {
|
|||||||
|
|
||||||
AVBufferRef *hw_frames_ctx;
|
AVBufferRef *hw_frames_ctx;
|
||||||
int32_t *displaymatrix;
|
int32_t *displaymatrix;
|
||||||
|
|
||||||
int eof;
|
|
||||||
} InputFilter;
|
} InputFilter;
|
||||||
|
|
||||||
typedef struct OutputFilter {
|
typedef struct OutputFilter {
|
||||||
|
@@ -55,6 +55,8 @@ static FilterGraphPriv *fgp_from_fg(FilterGraph *fg)
|
|||||||
typedef struct InputFilterPriv {
|
typedef struct InputFilterPriv {
|
||||||
InputFilter ifilter;
|
InputFilter ifilter;
|
||||||
|
|
||||||
|
int eof;
|
||||||
|
|
||||||
AVRational time_base;
|
AVRational time_base;
|
||||||
|
|
||||||
AVFifo *frame_queue;
|
AVFifo *frame_queue;
|
||||||
@@ -1353,7 +1355,8 @@ int configure_filtergraph(FilterGraph *fg)
|
|||||||
|
|
||||||
/* send the EOFs for the finished inputs */
|
/* send the EOFs for the finished inputs */
|
||||||
for (i = 0; i < fg->nb_inputs; i++) {
|
for (i = 0; i < fg->nb_inputs; i++) {
|
||||||
if (fg->inputs[i]->eof) {
|
InputFilterPriv *ifp = ifp_from_ifilter(fg->inputs[i]);
|
||||||
|
if (ifp->eof) {
|
||||||
ret = av_buffersrc_add_frame(fg->inputs[i]->filter, NULL);
|
ret = av_buffersrc_add_frame(fg->inputs[i]->filter, NULL);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
@@ -1500,7 +1503,7 @@ int ifilter_send_eof(InputFilter *ifilter, int64_t pts, AVRational tb)
|
|||||||
InputFilterPriv *ifp = ifp_from_ifilter(ifilter);
|
InputFilterPriv *ifp = ifp_from_ifilter(ifilter);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ifilter->eof = 1;
|
ifp->eof = 1;
|
||||||
|
|
||||||
if (ifilter->filter) {
|
if (ifilter->filter) {
|
||||||
pts = av_rescale_q_rnd(pts, tb, ifp->time_base,
|
pts = av_rescale_q_rnd(pts, tb, ifp->time_base,
|
||||||
|
Reference in New Issue
Block a user