avfilter/af_anlmdn: avoid creating frames with zero samples

This commit is contained in:
Paul B Mahol 2019-06-02 13:00:35 +02:00
parent 1a266a1ef9
commit fcfe85220d
1 changed files with 1 additions and 1 deletions

View File

@ -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)