diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-06-02 14:00:35 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-06-02 14:00:35 +0300 |
commit | fcfe85220dbdcc8df226abc2f829de569372b7b4 (patch) | |
tree | 9e11dc992df63d588b06753d30e4906337a0281a /libavfilter/af_anlmdn.c | |
parent | 1a266a1ef91d0329936ab75389102017cb48f45f (diff) |
avfilter/af_anlmdn: avoid creating frames with zero samples
Diffstat (limited to 'libavfilter/af_anlmdn.c')
-rw-r--r-- | libavfilter/af_anlmdn.c | 2 |
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) |