Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-06-02 14:00:35 +0300
committerPaul B Mahol <onemda@gmail.com>2019-06-02 14:00:35 +0300
commitfcfe85220dbdcc8df226abc2f829de569372b7b4 (patch)
tree9e11dc992df63d588b06753d30e4906337a0281a /libavfilter/af_anlmdn.c
parent1a266a1ef91d0329936ab75389102017cb48f45f (diff)
avfilter/af_anlmdn: avoid creating frames with zero samples
Diffstat (limited to 'libavfilter/af_anlmdn.c')
-rw-r--r--libavfilter/af_anlmdn.c2
1 files changed, 1 insertions, 1 deletions
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)