aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-06-15 16:14:12 +0200
committerNiklas Haas <git@haasn.dev>2023-06-20 17:09:57 +0200
commit7be4434c88209193c7d50f2cc26ed92f95167595 (patch)
treed268d348aac3c0c184af7e28514325e6f59d3223
parent3f48815501942d3cd65eab2d61dbe99c4328fd9b (diff)
downloadffmpeg-7be4434c88209193c7d50f2cc26ed92f95167595.tar.gz
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.
-rw-r--r--libavfilter/vf_libplacebo.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index 242c8a13f5..a048424cec 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -949,9 +949,6 @@ static int libplacebo_activate(AVFilterContext *ctx)
if (!s->fps.num)
av_fifo_drain2(s->out_pts, 1);
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:
return AVERROR_EXTERNAL;
}