avfilter/aeval: fix forgotten EOF case for activate

Bring fate test how it was previously.
pull/365/head
Paul B Mahol 3 years ago
parent 3e24e8108d
commit a6f00d4e82
  1. 6
      libavfilter/aeval.c
  2. 2
      tests/ref/fate/ffmpeg-filter_complex_audio

@ -272,8 +272,10 @@ static int activate(AVFilterContext *ctx)
if (!ff_outlink_frame_wanted(outlink))
return FFERROR_NOT_READY;
if (eval->duration >= 0 && t >= eval->duration)
return AVERROR_EOF;
if (eval->duration >= 0 && t >= eval->duration) {
ff_outlink_set_status(outlink, AVERROR_EOF, eval->pts);
return 0;
}
if (eval->duration >= 0) {
nb_samples = FFMIN(eval->nb_samples, av_rescale(eval->duration, eval->sample_rate, AV_TIME_BASE) - eval->pts);

@ -6,3 +6,5 @@
#channel_layout_name 0: mono
0, -256, -256, 1536, 416, 0x3001fb2d
0, 1280, 1280, 1536, 418, 0xba72fc16
0, 2816, 2816, 1536, 418, 0xba72fc16
0, 4352, 4352, 1536, 418, 0xba72fc16

Loading…
Cancel
Save