swscale/ops_backend: mark unreachable branch

The pixel format for the process loops have already been checked at
this point to be valid.

The switch added in e4abfb8e51 returns AVERROR(EINVAL) in the default
case without calling ff_sws_op_chain_free(chain), but there's no need
to free it since we mark this branch as unreachable.
This commit is contained in:
Ramiro Polla
2026-02-27 17:07:42 +01:00
parent 67f3627267
commit 23bb7c3907

View File

@@ -88,7 +88,7 @@ static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out)
case SWS_PIXEL_U16: out->func = process_u16; break;
case SWS_PIXEL_U32: out->func = process_u32; break;
case SWS_PIXEL_F32: out->func = process_f32; break;
default: return AVERROR(EINVAL);
default: av_unreachable("Invalid pixel type!");
}
return 0;