Commit 50a4d076 authored by Nicolas George's avatar Nicolas George

lavfi/trim: mark link closed on EOF.

Fix trac ticket #2620.
parent fc82f4a1
...@@ -162,7 +162,7 @@ static int trim_filter_frame(AVFilterLink *inlink, AVFrame *frame) ...@@ -162,7 +162,7 @@ static int trim_filter_frame(AVFilterLink *inlink, AVFrame *frame)
drop = 0; drop = 0;
if (drop) { if (drop) {
s->eof = 1; s->eof = inlink->closed = 1;
goto drop; goto drop;
} }
} }
...@@ -296,7 +296,7 @@ static int atrim_filter_frame(AVFilterLink *inlink, AVFrame *frame) ...@@ -296,7 +296,7 @@ static int atrim_filter_frame(AVFilterLink *inlink, AVFrame *frame)
} }
if (drop) { if (drop) {
s->eof = 1; s->eof = inlink->closed = 1;
goto drop; goto drop;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment