avfilter/aeval: fix forgotten EOF case for activate

Bring fate test how it was previously.
This commit is contained in:
Paul B Mahol 2021-08-26 19:14:52 +02:00
parent 3e24e8108d
commit a6f00d4e82
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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