[FFmpeg-cvslog] avfilter/af_anlmdn: avoid creating frames with zero samples

Paul B Mahol git at videolan.org
Sun Jun 2 14:03:36 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jun  2 13:00:35 2019 +0200| [fcfe85220dbdcc8df226abc2f829de569372b7b4] | committer: Paul B Mahol

avfilter/af_anlmdn: avoid creating frames with zero samples

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fcfe85220dbdcc8df226abc2f829de569372b7b4
---

 libavfilter/af_anlmdn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_anlmdn.c b/libavfilter/af_anlmdn.c
index 5c881f6fd2..93b76e0dff 100644
--- a/libavfilter/af_anlmdn.c
+++ b/libavfilter/af_anlmdn.c
@@ -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)



More information about the ffmpeg-cvslog mailing list