1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

lavfi/af_asetnsamples: fix EOF handling.

Only filter one buffered frame.
Correctly return EOF if there is none.
This commit is contained in:
Nicolas George 2013-03-31 19:28:11 +02:00
parent 983d04dd40
commit 52853077ee

View File

@ -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);
ret = push_samples(outlink);
return ret < 0 ? ret : ret > 0 ? 0 : AVERROR_EOF;
}
return ret;