Commit 52853077 authored by Nicolas George's avatar Nicolas George

lavfi/af_asetnsamples: fix EOF handling.

Only filter one buffered frame.
Correctly return EOF if there is none.
parent 983d04dd
......@@ -171,9 +171,8 @@ static int request_frame(AVFilterLink *outlink)
} while (!asns->req_fullfilled && ret >= 0);
if (ret == AVERROR_EOF) {
do {
ret = push_samples(outlink);
} while (ret > 0);
return ret < 0 ? ret : ret > 0 ? 0 : AVERROR_EOF;
}
return ret;
......
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