1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

lavfi/vf_libplacebo: drop redundant case

If the input queue is EOF, then the s->status check should already have
covered it, and prevented the code from getting this far.

If we still hit this case for some reason, it's probably a bug. Better
to hit the AVERROR_BUG branch.
This commit is contained in:
Niklas Haas
2023-06-15 16:14:12 +02:00
parent 3f48815501
commit 7be4434c88

View File

@@ -949,9 +949,6 @@ static int libplacebo_activate(AVFilterContext *ctx)
if (!s->fps.num) if (!s->fps.num)
av_fifo_drain2(s->out_pts, 1); av_fifo_drain2(s->out_pts, 1);
return output_frame_mix(ctx, &mix, pts); return output_frame_mix(ctx, &mix, pts);
case PL_QUEUE_EOF:
ff_outlink_set_status(outlink, AVERROR_EOF, pts);
return 0;
case PL_QUEUE_ERR: case PL_QUEUE_ERR:
return AVERROR_EXTERNAL; return AVERROR_EXTERNAL;
} }