avfilter/af_anlmdn: avoid creating frames with zero samples
authorPaul B Mahol <onemda@gmail.com>
Sun, 2 Jun 2019 11:00:35 +0000 (13:00 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 2 Jun 2019 11:00:35 +0000 (13:00 +0200)
libavfilter/af_anlmdn.c

index 5c881f6..93b76e0 100644 (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)