Browse Source

avfilter/af_anlmdn: avoid creating frames with zero samples

tags/n4.2
Paul B Mahol 6 years ago
parent
commit
fcfe85220d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_anlmdn.c

+ 1
- 1
libavfilter/af_anlmdn.c View File

@@ -317,7 +317,7 @@ static int request_frame(AVFilterLink *outlink)


if (s->eof_left < 0) if (s->eof_left < 0)
s->eof_left = av_audio_fifo_size(s->fifo) - (s->S + s->K); 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; return AVERROR_EOF;
in = ff_get_audio_buffer(outlink, s->H); in = ff_get_audio_buffer(outlink, s->H);
if (!in) if (!in)


Loading…
Cancel
Save