diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2013-06-02 11:35:04 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-06-02 23:19:42 +0200 |
commit | 50a4d076ce630db9b5b72c3e6348970e13ae1fb6 (patch) | |
tree | 7d79028e07678d8ce8bdcae0c574ba9325af2eda | |
parent | fc82f4a1f8aadca2f22e9029d610402c8a68fe9c (diff) | |
download | ffmpeg-50a4d076ce630db9b5b72c3e6348970e13ae1fb6.tar.gz |
lavfi/trim: mark link closed on EOF.
Fix trac ticket #2620.
-rw-r--r-- | libavfilter/trim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/trim.c b/libavfilter/trim.c index 96c30b4d76..29c7c50178 100644 --- a/libavfilter/trim.c +++ b/libavfilter/trim.c @@ -162,7 +162,7 @@ static int trim_filter_frame(AVFilterLink *inlink, AVFrame *frame) drop = 0; if (drop) { - s->eof = 1; + s->eof = inlink->closed = 1; goto drop; } } @@ -296,7 +296,7 @@ static int atrim_filter_frame(AVFilterLink *inlink, AVFrame *frame) } if (drop) { - s->eof = 1; + s->eof = inlink->closed = 1; goto drop; } } |