Commit fcfe8522 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_anlmdn: avoid creating frames with zero samples

parent 1a266a1e
......@@ -317,7 +317,7 @@ static int request_frame(AVFilterLink *outlink)
if (s->eof_left < 0)
s->eof_left = av_audio_fifo_size(s->fifo) - (s->S + s->K);
if (s->eof_left < 0)
if (s->eof_left <= 0)
return AVERROR_EOF;
in = ff_get_audio_buffer(outlink, s->H);
if (!in)
......
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