diff options
author | Nicolas George <george@nsup.org> | 2015-09-24 10:07:42 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2015-12-22 16:04:30 +0100 |
commit | 108b4de5529a75b06da72b974b26625a8067001f (patch) | |
tree | c38c0fc0600038a55116cbc3246e8158c491df89 /libavfilter/trim.c | |
parent | 39a09e995d32d16e4f8c87a6ff5273cb9d98146e (diff) | |
download | ffmpeg-108b4de5529a75b06da72b974b26625a8067001f.tar.gz |
lavfi: replace link.closed by link.status.
The status field can carry any error code instead of just EOF.
Also only update it through a wrapper function and provide a timestamp.
Update the few filters that used it directly.
Diffstat (limited to 'libavfilter/trim.c')
-rw-r--r-- | libavfilter/trim.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/trim.c b/libavfilter/trim.c index e8d023ec65..b2d9c6f17b 100644 --- a/libavfilter/trim.c +++ b/libavfilter/trim.c @@ -174,7 +174,8 @@ static int trim_filter_frame(AVFilterLink *inlink, AVFrame *frame) drop = 0; if (drop) { - s->eof = inlink->closed = 1; + s->eof = 1; + ff_avfilter_link_set_out_status(inlink, AVERROR_EOF, AV_NOPTS_VALUE); goto drop; } } @@ -305,7 +306,8 @@ static int atrim_filter_frame(AVFilterLink *inlink, AVFrame *frame) } if (drop) { - s->eof = inlink->closed = 1; + s->eof = 1; + ff_avfilter_link_set_out_status(inlink, AVERROR_EOF, AV_NOPTS_VALUE); goto drop; } } |