[FFmpeg-devel] [PATCH 2/2] lavfi/trim: mark link closed on EOF.
Nicolas George
nicolas.george at normalesup.org
Sun Jun 2 11:43:02 CEST 2013
Fix trac ticket #2620.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavfilter/trim.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/trim.c b/libavfilter/trim.c
index 96c30b4..29c7c50 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;
}
}
--
1.7.10.4
More information about the ffmpeg-devel
mailing list